Skip to content

Commit

Permalink
fix: pass api host to @netlify/build (#6424)
Browse files Browse the repository at this point in the history
  • Loading branch information
davbree committed Mar 11, 2024
1 parent b4d8fec commit 9b8694e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/run-build.ts
Expand Up @@ -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

Expand All @@ -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,
Expand Down

2 comments on commit 9b8694e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Dependency count: 1,328
  • Package size: 305 MB
  • Number of ts-expect-error directives: 1,179

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📊 Benchmark results

  • Dependency count: 1,328
  • Package size: 305 MB
  • Number of ts-expect-error directives: 1,179

Please sign in to comment.