Skip to content

Commit

Permalink
fix: force nitro preset only in production when remote is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Atinux committed May 15, 2024
1 parent 69994d7 commit caed55b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export default defineNuxtModule<ModuleOptions>({
})
}

if (!nuxt.options.dev) {
if (!nuxt.options.dev && !hub.remote) {
// Make sure to fallback to cloudflare-pages preset
let preset = nuxt.options.nitro.preset = nuxt.options.nitro.preset || 'cloudflare-pages'
// Support also cloudflare_module
Expand Down

0 comments on commit caed55b

Please sign in to comment.