Skip to content

Commit

Permalink
feat: force cloudflare-pages preset
Browse files Browse the repository at this point in the history
  • Loading branch information
Atinux committed May 1, 2024
1 parent 2eb119f commit ccdfb21
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,11 @@ export default defineNuxtModule<ModuleOptions>({
})
}

if (!nuxt.options.dev) {
// Make sure we force the cloudflare-pages preset
nuxt.options.nitro.preset = 'cloudflare-pages'
}

if (hub.remote) {
// Can either use projectKey or projectUrl
if (hub.projectKey && hub.projectUrl) {
Expand Down

0 comments on commit ccdfb21

Please sign in to comment.