Skip to content

Commit c672f33

Browse files
committed
fix: support upcoming nitro version
1 parent 3a17f52 commit c672f33

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/module.ts

+4-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ export default defineNuxtModule<ModuleOptions>({
9696
}
9797
runtimeConfig.hub = hub
9898
runtimeConfig.public.hub = {}
99-
// Make sure to tell Nitro to not generate the wrangler.toml file
99+
// Make sure to tell Nitro to not generate the .wrangler/deploy/config.json file
100+
nuxt.options.nitro.cloudflare ||= {}
101+
nuxt.options.nitro.cloudflare.noWranglerDeployConfig = true
102+
// For old versions of Nitro, disable generating the wrangler.toml file
100103
delete nuxt.options.nitro.cloudflare?.wrangler?.compatibility_flags
101104
if (nuxt.options.nitro.cloudflare?.wrangler && Object.keys(nuxt.options.nitro.cloudflare.wrangler).length) {
102105
log.warn('The `nitro.cloudflare.wrangler` defined options are not supported by NuxtHub, ignoring...')

0 commit comments

Comments
 (0)