Skip to content

Commit 02f65e5

Browse files
committed
fix: disable remote storage within CF Pages CI
1 parent a194392 commit 02f65e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/module.ts

+3
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ export default defineNuxtModule<ModuleOptions>({
163163

164164
// Within CF Pages CI/CD to notice NuxtHub about the build and hub config
165165
if (!nuxt.options.dev && process.env.CF_PAGES && process.env.NUXT_HUB_PROJECT_DEPLOY_TOKEN && process.env.NUXT_HUB_PROJECT_KEY && process.env.NUXT_HUB_ENV) {
166+
// Disable remote option (if set also for prod)
167+
hub.remote = false
168+
// Wait for modules to be done to send config to NuxtHub
166169
nuxt.hook('modules:done', async () => {
167170
const { bindingsChanged } = await $fetch<{ bindingsChanged: boolean }>(`/api/projects/${process.env.NUXT_HUB_PROJECT_KEY}/build/${process.env.NUXT_HUB_ENV}/before`, {
168171
baseURL: hub.url,

0 commit comments

Comments
 (0)