Unverified Commit 027a407b authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Env follow-up for experimental trace (#68086)

Small follow-up to https://github.com/vercel/next.js/pull/68076 ensuring
we use the values from our next public env result.
parent 953ec519
...@@ -18,9 +18,9 @@ export function generateShuttleManifest(config: NextConfigComplete) { ...@@ -18,9 +18,9 @@ export function generateShuttleManifest(config: NextConfigComplete) {
// NEXT_PUBLIC_ changes for now since they are inlined // NEXT_PUBLIC_ changes for now since they are inlined
// and specific next config values that can impact the build // and specific next config values that can impact the build
const globalHash = crypto.createHash('sha256') const globalHash = crypto.createHash('sha256')
const nextPublicEnv = getNextPublicEnvironmentVariables()
for (const key in getNextPublicEnvironmentVariables()) { for (const key in nextPublicEnv) {
globalHash.update(`${key}=${process.env[key]}`) globalHash.update(`${key}=${nextPublicEnv[key]}`)
} }
const omittedConfigKeys = ['headers', 'rewrites', 'redirects'] const omittedConfigKeys = ['headers', 'rewrites', 'redirects']
......
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