File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
packages/cloudflare/src/cli/build Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { readFile, writeFile } from "node:fs/promises";
33import path from "node:path" ;
44import { fileURLToPath } from "node:url" ;
55
6+ import { loadBuildId } from "@opennextjs/aws/adapters/config/util.js" ;
67import { type BuildOptions , getPackagePath } from "@opennextjs/aws/build/helper.js" ;
78import { ContentUpdater } from "@opennextjs/aws/plugins/content-updater.js" ;
89import { build , type Plugin } from "esbuild" ;
@@ -146,6 +147,7 @@ export async function bundleServer(buildOpts: BuildOptions): Promise<void> {
146147 "process.env.TURBOPACK" : "false" ,
147148 // This define should be safe to use for Next 14.2+, earlier versions (13.5 and less) will cause trouble
148149 "process.env.__NEXT_EXPERIMENTAL_REACT" : `${ needsExperimentalReact ( nextConfig ) } ` ,
150+ "process.env__NEXT_BUILD_ID" : JSON . stringify ( loadBuildId ( baseManifestPath ) ) ,
149151 } ,
150152 banner : {
151153 // We need to import them here, assigning them to `globalThis` does not work because node:timers use `globalThis` and thus create an infinite loop
You can’t perform that action at this time.
0 commit comments