Skip to content

Commit 00aa6b6

Browse files
committed
fix: support when no CF binding
1 parent 1965479 commit 00aa6b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/utils/hooks.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface HubHooks {
88
export const hubHooks = createHooks<HubHooks>()
99

1010
export function onHubReady (cb: HubHooks['bindings:ready']) {
11-
if (import.meta.dev) {
11+
if (import.meta.dev && !process.env.NUXT_HUB_URL) {
1212
return hubHooks.hookOnce('bindings:ready', cb)
1313
}
1414
cb()

0 commit comments

Comments
 (0)