Fix load base option in build (#4469)

This commit is contained in:
kagankan 2022-08-25 22:35:28 +09:00 committed by GitHub
parent 1f80c63b74
commit 8a2d6958f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fix load `base` option in build

View file

@ -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({