8000 chore: update deploy command to npx nuxthub deploy · nuxt-hub/core@ef43572 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit ef43572

Browse files
committed
chore: update deploy command to npx nuxthub deploy
1 parent 9814ce3 commit ef43572

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/module.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@ export default defineNuxtModule<ModuleOptions>({
106106
log.error('NuxtHub is only compatible with the `cloudflare-pages` and `cloudflare-module` presets.')
107107
process.exit(1)
108108
}
109+
110+
// Update the deploy command displayed in the console
111+
nuxt.options.nitro.commands = nuxt.options.nitro.commands || {}
112+
nuxt.options.nitro.commands.deploy = 'npx nuxthub deploy'
109113
}
110114

111115
// Local development without remote connection

0 commit comments

Comments
 (0)
0