Skip to content

Commit

Permalink
chore: update deploy command to npx nuxthub deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Jun 28, 2024
1 parent 9814ce3 commit ef43572
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ export default defineNuxtModule<ModuleOptions>({
log.error('NuxtHub is only compatible with the `cloudflare-pages` and `cloudflare-module` presets.')
process.exit(1)
}

// Update the deploy command displayed in the console
nuxt.options.nitro.commands = nuxt.options.nitro.commands || {}
nuxt.options.nitro.commands.deploy = 'npx nuxthub deploy'
}

// Local development without remote connection
Expand Down

0 comments on commit ef43572

Please sign in to comment.