diff --git a/src/utils/run-build.ts b/src/utils/run-build.ts index a4307b6f688..055a67b27a8 100644 --- a/src/utils/run-build.ts +++ b/src/utils/run-build.ts @@ -57,7 +57,7 @@ const cleanInternalDirectory = async (basePath) => { */ // @ts-expect-error TS(7031) FIXME: Binding element 'command' implicitly has an 'any' ... Remove this comment to see the full error message export const runNetlifyBuild = async ({ command, env = {}, options, settings, timeline = 'build' }) => { - const { cachedConfig, site } = command.netlify + const { apiOpts, cachedConfig, site } = command.netlify const { default: buildSite, startDev } = await netlifyBuildPromise @@ -66,6 +66,7 @@ export const runNetlifyBuild = async ({ command, env = {}, options, settings, ti configPath: cachedConfig.configPath, siteId: cachedConfig.siteInfo.id, token: cachedConfig.token, + apiHost: apiOpts.host, dry: options.dry, debug: options.debug, context: options.context,