Fix baseUrl passed to Snowpack (#391)

This commit is contained in:
Drew Powers 2021-06-11 11:36:41 -06:00 committed by GitHub
parent 61b5590b95
commit fb02a482c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -406,7 +406,7 @@ async function createSnowpack(astroConfig: AstroConfig, options: CreateSnowpackO
tailwindConfig: astroConfig.devOptions.tailwindConfig, tailwindConfig: astroConfig.devOptions.tailwindConfig,
}, },
buildOptions: { buildOptions: {
baseUrl: astroConfig.buildOptions.site, baseUrl: astroConfig.buildOptions.site || '/', // note: Snowpack needs this fallback
out: astroConfig.dist, out: astroConfig.dist,
}, },
packageOptions: { packageOptions: {