From 64e32d784c5d20d4069c1bc4a5fbc8ed982584e9 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Mon, 6 Jan 2025 22:51:34 +0100 Subject: [PATCH] refactor(netlify): avoid adding `baseURL` to `path` partially reverts #2971 as there are platform issues --- src/presets/netlify/preset.ts | 2 +- src/presets/netlify/utils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/presets/netlify/preset.ts b/src/presets/netlify/preset.ts index e298ed0b10..ba6d11fd3c 100644 --- a/src/presets/netlify/preset.ts +++ b/src/presets/netlify/preset.ts @@ -86,7 +86,7 @@ const netlifyEdge = defineNitroPreset( version: 1, functions: [ { - path: `${joinURL(nitro.options.baseURL, "*")}`, + path: "/*", excludedPath: getStaticPaths( nitro.options.publicAssets, nitro.options.baseURL diff --git a/src/presets/netlify/utils.ts b/src/presets/netlify/utils.ts index 03b1bfd083..774a593176 100644 --- a/src/presets/netlify/utils.ts +++ b/src/presets/netlify/utils.ts @@ -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, };