Skip to content

Commit 0c9eb8b

Browse files
committed
chore: add support for Nitro nodeCompat
1 parent 5fab003 commit 0c9eb8b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/module.ts

+2
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ export default defineNuxtModule<ModuleOptions>({
100100
nuxt.options.nitro.cloudflare ||= {}
101101
// @ts-expect-error noWranglerDeployConfig is not typed here
102102
nuxt.options.nitro.cloudflare.noWranglerDeployConfig = true
103+
// @ts-expect-error nodeCompat is not typed here
104+
nuxt.options.nitro.cloudflare.nodeCompat = true
103105
// For old versions of Nitro, disable generating the wrangler.toml file
104106
delete nuxt.options.nitro.cloudflare?.wrangler?.compatibility_flags
105107
if (nuxt.options.nitro.cloudflare?.wrangler && Object.keys(nuxt.options.nitro.cloudflare.wrangler).length) {

0 commit comments

Comments
 (0)