Skip to content

Commit

Permalink
Fix load base option in build (#4469)
Browse files Browse the repository at this point in the history
  • Loading branch information
kagankan committed Aug 25, 2022
1 parent 1f80c63 commit 8a2d695
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/gold-suns-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fix load `base` option in build
2 changes: 2 additions & 0 deletions packages/astro/src/core/build/static-build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ async function ssrBuild(opts: StaticBuildOptions, internals: BuildInternals, inp
],
publicDir: ssr ? false : viteConfig.publicDir,
envPrefix: 'PUBLIC_',
base: astroConfig.base,
};

await runHookBuildSetup({
Expand Down Expand Up @@ -230,6 +231,7 @@ async function clientBuild(
...(viteConfig.plugins || []),
],
envPrefix: 'PUBLIC_',
base: astroConfig.base,
} as ViteConfigWithSSR;

await runHookBuildSetup({
Expand Down

0 comments on commit 8a2d695

Please sign in to comment.