diff --git a/.changeset/stale-cameras-teach.md b/.changeset/stale-cameras-teach.md new file mode 100644 index 000000000..e2a1bf196 --- /dev/null +++ b/.changeset/stale-cameras-teach.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Pass "site" config to Snowpack as "baseUrl" diff --git a/packages/astro/src/runtime.ts b/packages/astro/src/runtime.ts index 9eeab014b..6ad261272 100644 --- a/packages/astro/src/runtime.ts +++ b/packages/astro/src/runtime.ts @@ -406,6 +406,7 @@ async function createSnowpack(astroConfig: AstroConfig, options: CreateSnowpackO tailwindConfig: astroConfig.devOptions.tailwindConfig, }, buildOptions: { + baseUrl: astroConfig.buildOptions.site, out: astroConfig.dist, }, packageOptions: {