0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-17 23:11:29 -05:00

ignore the default "base" value when building links/scripts

This commit is contained in:
Tony Sullivan 2022-04-20 14:53:35 +02:00
parent bfb01149b3
commit d8f02be588

View file

@ -176,7 +176,9 @@ async function generatePath(
debug('build', `Generating: ${pathname}`);
const site = joinPaths(astroConfig.site, astroConfig.base);
const site = !astroConfig.base || astroConfig.base === './'
? astroConfig.site
: joinPaths(astroConfig.site, astroConfig.base);
const links = createLinkStylesheetElementSet(linkIds.reverse(), site);
const scripts = createModuleScriptElementWithSrcSet(hoistedId ? [hoistedId] : [], site);