Skip to content

Commit

Permalink
refactor(netlify): avoid adding baseURL to path
Browse files Browse the repository at this point in the history
partially reverts #2971 as there are platform issues
  • Loading branch information
pi0 committed Jan 6, 2025
1 parent 7c780cc commit 64e32d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/presets/netlify/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const netlifyEdge = defineNitroPreset(
version: 1,
functions: [
{
path: `${joinURL(nitro.options.baseURL, "*")}`,
path: "/*",
excludedPath: getStaticPaths(
nitro.options.publicAssets,
nitro.options.baseURL
Expand Down
2 changes: 1 addition & 1 deletion src/presets/netlify/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export { default } from "./main.mjs";
export const config = {
name: "server handler",
generator: "${getGeneratorString(nitro)}",
path: "${joinURL(nitro.options.baseURL, "*")}",
path: "/*",
excludedPath: ${JSON.stringify(getStaticPaths(nitro.options.publicAssets, nitro.options.baseURL))},
preferStatic: true,
};
Expand Down

0 comments on commit 64e32d7

Please sign in to comment.