Skip to content

Commit e67b169

Browse files
committed
fix: correct edge function path for route resolution endpoint
Went missing during a refactoring in #13383
1 parent 3f5605d commit e67b169

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.changeset/healthy-bees-repeat.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/adapter-vercel': patch
3+
---
4+
5+
fix: correct edge function path for route resolution endpoint

packages/adapter-vercel/index.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ const plugin = function (defaults = {}) {
396396
// By omitting all routes we're ensuring it's small (the routes will still be available
397397
// to the route resolution, becaue it does not rely on the server routing manifest)
398398
await generate_edge_function(
399-
`${builder.config.kit.appDir}/routes`,
399+
`${builder.config.kit.appDir}/route`,
400400
{
401401
external: 'external' in defaults ? defaults.external : undefined,
402402
runtime: 'edge'
@@ -405,8 +405,8 @@ const plugin = function (defaults = {}) {
405405
);
406406

407407
static_config.routes.push({
408-
src: `${builder.config.kit.paths.base}/${builder.config.kit.appDir}/routes(\\.js|/.*)`,
409-
dest: `${builder.config.kit.paths.base}/${builder.config.kit.appDir}/routes`
408+
src: `${builder.config.kit.paths.base}/${builder.config.kit.appDir}/route(\\.js|/.*)`,
409+
dest: `${builder.config.kit.paths.base}/${builder.config.kit.appDir}/route`
410410
});
411411
}
412412

0 commit comments

Comments
 (0)