Skip to content

Commit

Permalink
mark expiration as required (#8943)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris authored Feb 8, 2023
1 parent 12fc26f commit 3fb80bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/long-timers-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/adapter-vercel': patch
---

fix: mark `expiration` as required
2 changes: 1 addition & 1 deletion packages/adapter-vercel/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export interface ServerlessConfig {
/**
* Expiration time (in seconds) before the cached asset will be re-generated by invoking the Serverless Function. Setting the value to `false` means it will never expire.
*/
expiration?: number | false;
expiration: number | false;
/**
* Option group number of the asset. Assets with the same group number will all be re-validated at the same time.
*/
Expand Down

0 comments on commit 3fb80bd

Please sign in to comment.