Fix load base
option in build (#4469)
This commit is contained in:
parent
1f80c63b74
commit
8a2d6958f1
2 changed files with 7 additions and 0 deletions
5
.changeset/gold-suns-repair.md
Normal file
5
.changeset/gold-suns-repair.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fix load `base` option in build
|
|
@ -160,6 +160,7 @@ async function ssrBuild(opts: StaticBuildOptions, internals: BuildInternals, inp
|
|||
],
|
||||
publicDir: ssr ? false : viteConfig.publicDir,
|
||||
envPrefix: 'PUBLIC_',
|
||||
base: astroConfig.base,
|
||||
};
|
||||
|
||||
await runHookBuildSetup({
|
||||
|
@ -230,6 +231,7 @@ async function clientBuild(
|
|||
...(viteConfig.plugins || []),
|
||||
],
|
||||
envPrefix: 'PUBLIC_',
|
||||
base: astroConfig.base,
|
||||
} as ViteConfigWithSSR;
|
||||
|
||||
await runHookBuildSetup({
|
||||
|
|
Loading…
Reference in a new issue