Unverified Commit beeefaae authored by Lucio Villa's avatar Lucio Villa Committed by GitHub

Load .env files before running Telemetry (#13173)

Fixes #13171
parent 7eaf9b8b
......@@ -98,6 +98,10 @@ export default async function (
}
dir = resolve(dir)
// attempt to load global env values so they are available in next.config.js
loadEnvConfig(dir)
const nextConfig = configuration || loadConfig(PHASE_EXPORT, dir)
const threads = options.threads || Math.max(cpus().length - 1, 1)
const distDir = join(dir, nextConfig.distDir)
......@@ -226,8 +230,6 @@ export default async function (
}
}
loadEnvConfig(dir)
// Start the rendering process
const renderOpts = {
dir,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment