Skip to content

Commit

Permalink
fix(netlify): respect baseURL
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAlexLichter committed Jan 3, 2025
1 parent f9113c6 commit acfd275
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 acfd275

Please sign in to comment.