Skip to content

Commit

Permalink
fix(netlify): support custom baseURL (#2966)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAlexLichter authored Jan 4, 2025
1 parent 6ba4066 commit 8b58180
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/presets/netlify/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const netlify = defineNitroPreset(
entry: "./runtime/netlify",
output: {
dir: "{{ rootDir }}/.netlify/functions-internal",
publicDir: "{{ rootDir }}/dist",
publicDir: "{{ rootDir }}/dist/{{ baseURL }}",
},
rollupConfig: {
output: {
Expand Down Expand Up @@ -67,7 +67,7 @@ const netlifyEdge = defineNitroPreset(
exportConditions: ["netlify"],
output: {
serverDir: "{{ rootDir }}/.netlify/edge-functions/server",
publicDir: "{{ rootDir }}/dist",
publicDir: "{{ rootDir }}/dist/{{ baseURL }}",
},
rollupConfig: {
output: {
Expand Down Expand Up @@ -114,7 +114,7 @@ const netlifyStatic = defineNitroPreset(
extends: "static",
output: {
dir: "{{ rootDir }}/dist",
publicDir: "{{ rootDir }}/dist",
publicDir: "{{ rootDir }}/dist/{{ baseURL }}",
},
commands: {
preview: "npx serve ./",
Expand Down

0 comments on commit 8b58180

Please sign in to comment.