We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3345b71 commit ce52f9eCopy full SHA for ce52f9e
.changeset/tough-points-arrive.md
@@ -0,0 +1,5 @@
1
+---
2
+'@sveltejs/adapter-vercel': patch
3
4
+
5
+fix: add leading / to isr routes
packages/adapter-vercel/index.js
@@ -274,12 +274,12 @@ const plugin = function (defaults = {}) {
274
275
static_config.routes.push({
276
src: src + '$',
277
- dest: `${isr_name}${q}`
+ dest: `/${isr_name}${q}`
278
});
279
280
281
src: src + '/__data.json$',
282
- dest: `${isr_name}/__data.json${q}`
+ dest: `/${isr_name}/__data.json${q}`
283
284
} else if (!singular) {
285
static_config.routes.push({ src: src + '(?:/__data.json)?$', dest: `/${name}` });
0 commit comments