From fb02a482c3e1f72b47360933f43111605408a476 Mon Sep 17 00:00:00 2001 From: Drew Powers <1369770+drwpow@users.noreply.github.com> Date: Fri, 11 Jun 2021 11:36:41 -0600 Subject: [PATCH] Fix baseUrl passed to Snowpack (#391) --- packages/astro/src/runtime.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/astro/src/runtime.ts b/packages/astro/src/runtime.ts index 6ad261272..4f3e4c6ce 100644 --- a/packages/astro/src/runtime.ts +++ b/packages/astro/src/runtime.ts @@ -406,7 +406,7 @@ async function createSnowpack(astroConfig: AstroConfig, options: CreateSnowpackO tailwindConfig: astroConfig.devOptions.tailwindConfig, }, buildOptions: { - baseUrl: astroConfig.buildOptions.site, + baseUrl: astroConfig.buildOptions.site || '/', // note: Snowpack needs this fallback out: astroConfig.dist, }, packageOptions: {