Pass through the origin

This commit is contained in:
Matthew Phillips 2021-12-09 09:26:39 -08:00
parent b7ff454453
commit 98a868e8cb
2 changed files with 3 additions and 1 deletions

View file

@ -104,6 +104,7 @@ class AstroBuilder {
allPages,
astroConfig: this.config,
logging: this.logging,
origin: this.origin,
pageNames,
routeCache: this.routeCache,
viteConfig: this.viteConfig,

View file

@ -15,6 +15,7 @@ export interface ScanBasedBuildOptions {
allPages: AllPagesData;
astroConfig: AstroConfig;
logging: LogOptions;
origin: string;
pageNames: string[];
routeCache: RouteCache;
viteConfig: ViteConfigWithSSR;
@ -22,7 +23,7 @@ export interface ScanBasedBuildOptions {
}
export async function build(opts: ScanBasedBuildOptions) {
const { allPages, astroConfig, logging, pageNames, routeCache, viteConfig, viteServer } = opts;
const { allPages, astroConfig, logging, origin, pageNames, routeCache, viteConfig, viteServer } = opts;
// Internal maps used to coordinate the HTML and CSS plugins.
const internals = createBuildInternals();