From 98a868e8cbc9d7bfcf59c773a249a0fe398bcb71 Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Thu, 9 Dec 2021 09:26:39 -0800 Subject: [PATCH] Pass through the origin --- packages/astro/src/core/build/index.ts | 1 + packages/astro/src/core/build/scan-based-build.ts | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/astro/src/core/build/index.ts b/packages/astro/src/core/build/index.ts index 7075de342..353313c75 100644 --- a/packages/astro/src/core/build/index.ts +++ b/packages/astro/src/core/build/index.ts @@ -104,6 +104,7 @@ class AstroBuilder { allPages, astroConfig: this.config, logging: this.logging, + origin: this.origin, pageNames, routeCache: this.routeCache, viteConfig: this.viteConfig, diff --git a/packages/astro/src/core/build/scan-based-build.ts b/packages/astro/src/core/build/scan-based-build.ts index d75a5bf0e..0cee9dd39 100644 --- a/packages/astro/src/core/build/scan-based-build.ts +++ b/packages/astro/src/core/build/scan-based-build.ts @@ -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();