mirror of
https://github.com/withastro/astro.git
synced 2025-03-17 23:11:29 -05:00
astro build
should include the base
provided in astro config
This commit is contained in:
parent
59f07e8dd5
commit
2766f326e8
1 changed files with 1 additions and 6 deletions
|
@ -176,12 +176,7 @@ async function generatePath(
|
|||
|
||||
debug('build', `Generating: ${pathname}`);
|
||||
|
||||
// If a base path was provided, append it to the site URL. This ensures that
|
||||
// all injected scripts and links are referenced relative to the site and subpath.
|
||||
const site =
|
||||
astroConfig.base !== '/'
|
||||
? joinPaths(astroConfig.site?.toString() || 'http://localhost/', astroConfig.base)
|
||||
: astroConfig.site;
|
||||
const 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