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:
parent
bfb01149b3
commit
d8f02be588
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue