Skip to content

Commit cc1ecbd

Browse files
authored
Use patchNodeEnvironment from aws (#863)
`patchNodeEnvironment` was introduced in #843 to drop the babel dependency. It was upstream into aws via opennextjs/opennextjs-aws#948. This PR drops the local version to use the upstream version.
1 parent 7233c03 commit cc1ecbd

File tree

4 files changed

+1
-84
lines changed

4 files changed

+1
-84
lines changed

packages/cloudflare/src/cli/build/bundle-server.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import { inlineFindDir } from "./patches/plugins/find-dir.js";
1616
import { patchInstrumentation } from "./patches/plugins/instrumentation.js";
1717
import { inlineLoadManifest } from "./patches/plugins/load-manifest.js";
1818
import { patchNextServer } from "./patches/plugins/next-server.js";
19-
import { patchNodeEnvironment } from "./patches/plugins/node-environment.js";
2019
import { patchResolveCache } from "./patches/plugins/open-next.js";
2120
import { handleOptionalDependencies } from "./patches/plugins/optional-deps.js";
2221
import { patchPagesRouterContext } from "./patches/plugins/pages-router-context.js";
@@ -108,7 +107,6 @@ export async function bundleServer(buildOpts: BuildOptions, projectOpts: Project
108107
patchRouteModules(updater, buildOpts),
109108
patchDepdDeprecations(updater),
110109
patchResolveCache(updater, buildOpts),
111-
patchNodeEnvironment(updater),
112110
// Apply updater updates, must be the last plugin
113111
updater.plugin,
114112
] as Plugin[],

packages/cloudflare/src/cli/build/open-next/createServerBundle.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ async function generateBundle(
206206
awsPatches.patchNextServer,
207207
awsPatches.patchEnvVars,
208208
awsPatches.patchBackgroundRevalidation,
209+
awsPatches.patchNodeEnvironment,
209210
// Cloudflare specific patches
210211
patchResRevalidate,
211212
patchUseCacheIO,

packages/cloudflare/src/cli/build/patches/plugins/node-environment.spec.ts

Lines changed: 0 additions & 52 deletions
This file was deleted.

packages/cloudflare/src/cli/build/patches/plugins/node-environment.ts

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)