Skip to content

Commit

Permalink
fix: support when no CF binding
Browse files Browse the repository at this point in the history
  • Loading branch information
atinux committed Feb 14, 2024
1 parent 1965479 commit 00aa6b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/utils/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface HubHooks {
export const hubHooks = createHooks<HubHooks>()

export function onHubReady (cb: HubHooks['bindings:ready']) {
if (import.meta.dev) {
if (import.meta.dev && !process.env.NUXT_HUB_URL) {
return hubHooks.hookOnce('bindings:ready', cb)
}
cb()
Expand Down

0 comments on commit 00aa6b6

Please sign in to comment.