Pass Astro site to snowpack baseUrl (#384)

This commit is contained in:
Drew Powers 2021-06-11 10:57:32 -06:00 committed by GitHub
parent 6eacdbae42
commit 61b5590b95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Pass "site" config to Snowpack as "baseUrl"

View file

@ -406,6 +406,7 @@ async function createSnowpack(astroConfig: AstroConfig, options: CreateSnowpackO
tailwindConfig: astroConfig.devOptions.tailwindConfig,
},
buildOptions: {
baseUrl: astroConfig.buildOptions.site,
out: astroConfig.dist,
},
packageOptions: {