Skip to content

Commit

Permalink
fix(vercel-edge): fix route generation (#1071)
Browse files Browse the repository at this point in the history
  • Loading branch information
smaeda-ks authored Mar 22, 2023
1 parent 246ba03 commit ac8ca35
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/presets/vercel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,10 @@ function generateBuildConfig(nitro: Nitro) {
}
return {
src,
dest: generateEndpoint(key) + "?url=$url",
dest:
nitro.options.preset === "vercel-edge"
? "/__nitro?url=$url"
: generateEndpoint(key) + "?url=$url",
};
}),
// If we are using a prerender function for /, then we need to write this explicitly
Expand Down

0 comments on commit ac8ca35

Please sign in to comment.