Skip to content

Commit 707bfbe

Browse files
Rich-HarrisRich Harris
and
Rich Harris
authored
create separate functions for ISR routes (#9504)
Co-authored-by: Rich Harris <[email protected]>
1 parent c381adb commit 707bfbe

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/early-pigs-boil.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: create separate functions for ISR routes

packages/adapter-vercel/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,8 @@ function hash_config(config) {
358358
config.external ?? '',
359359
config.regions ?? '',
360360
config.memory ?? '',
361-
config.maxDuration ?? ''
361+
config.maxDuration ?? '',
362+
!!config.isr // need to distinguish ISR from non-ISR functions, because ISR functions can't use streaming mode
362363
].join('/');
363364
}
364365

0 commit comments

Comments
 (0)