Skip to content

Commit 3fb80bd

Browse files
authored
mark expiration as required (#8943)
1 parent 12fc26f commit 3fb80bd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/long-timers-try.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/adapter-vercel': patch
3+
---
4+
5+
fix: mark `expiration` as required

packages/adapter-vercel/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export interface ServerlessConfig {
3535
/**
3636
* 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.
3737
*/
38-
expiration?: number | false;
38+
expiration: number | false;
3939
/**
4040
* Option group number of the asset. Assets with the same group number will all be re-validated at the same time.
4141
*/

0 commit comments

Comments
 (0)