Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/healthy-bees-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/adapter-vercel': patch
---

fix: correct edge function path for route resolution endpoint
6 changes: 3 additions & 3 deletions packages/adapter-vercel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ const plugin = function (defaults = {}) {
// By omitting all routes we're ensuring it's small (the routes will still be available
// to the route resolution, becaue it does not rely on the server routing manifest)
Comment thread
teemingc marked this conversation as resolved.
Outdated
await generate_edge_function(
`${builder.config.kit.appDir}/routes`,
`${builder.config.kit.appDir}/route`,
{
external: 'external' in defaults ? defaults.external : undefined,
runtime: 'edge'
Expand All @@ -405,8 +405,8 @@ const plugin = function (defaults = {}) {
);

static_config.routes.push({
src: `${builder.config.kit.paths.base}/${builder.config.kit.appDir}/routes(\\.js|/.*)`,
dest: `${builder.config.kit.paths.base}/${builder.config.kit.appDir}/routes`
src: `${builder.config.kit.paths.base}/${builder.config.kit.appDir}/route(\\.js|/.*)`,
dest: `${builder.config.kit.paths.base}/${builder.config.kit.appDir}/route`
});
}

Expand Down