Pass through the origin
This commit is contained in:
parent
b7ff454453
commit
98a868e8cb
2 changed files with 3 additions and 1 deletions
|
@ -104,6 +104,7 @@ class AstroBuilder {
|
||||||
allPages,
|
allPages,
|
||||||
astroConfig: this.config,
|
astroConfig: this.config,
|
||||||
logging: this.logging,
|
logging: this.logging,
|
||||||
|
origin: this.origin,
|
||||||
pageNames,
|
pageNames,
|
||||||
routeCache: this.routeCache,
|
routeCache: this.routeCache,
|
||||||
viteConfig: this.viteConfig,
|
viteConfig: this.viteConfig,
|
||||||
|
|
|
@ -15,6 +15,7 @@ export interface ScanBasedBuildOptions {
|
||||||
allPages: AllPagesData;
|
allPages: AllPagesData;
|
||||||
astroConfig: AstroConfig;
|
astroConfig: AstroConfig;
|
||||||
logging: LogOptions;
|
logging: LogOptions;
|
||||||
|
origin: string;
|
||||||
pageNames: string[];
|
pageNames: string[];
|
||||||
routeCache: RouteCache;
|
routeCache: RouteCache;
|
||||||
viteConfig: ViteConfigWithSSR;
|
viteConfig: ViteConfigWithSSR;
|
||||||
|
@ -22,7 +23,7 @@ export interface ScanBasedBuildOptions {
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function build(opts: 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.
|
// Internal maps used to coordinate the HTML and CSS plugins.
|
||||||
const internals = createBuildInternals();
|
const internals = createBuildInternals();
|
||||||
|
|
Loading…
Reference in a new issue