mirror of
https://github.com/withastro/astro.git
synced 2025-03-17 23:11:29 -05:00
fix: config.site was being ignored since it's a URL not a string
This commit is contained in:
parent
326aced56a
commit
3e54ee720c
1 changed files with 1 additions and 1 deletions
|
@ -179,7 +179,7 @@ async function generatePath(
|
|||
// 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 && astroConfig.base !== './'
|
||||
? joinPaths(astroConfig.site || 'http://localhost/', astroConfig.base)
|
||||
? joinPaths(astroConfig.site?.toString() || 'http://localhost/', astroConfig.base)
|
||||
: astroConfig.site;
|
||||
const links = createLinkStylesheetElementSet(linkIds.reverse(), site);
|
||||
const scripts = createModuleScriptElementWithSrcSet(hoistedId ? [hoistedId] : [], site);
|
||||
|
|
Loading…
Add table
Reference in a new issue