From a5237380e730818f8bbef263e3c9d02628cbe2f4 Mon Sep 17 00:00:00 2001 From: Philippe Serhal Date: Mon, 2 Feb 2026 21:24:45 -0500 Subject: [PATCH 1/6] fix: add missing defu dep introduced in https://github.com/npmx-dev/npmx.dev/commit/ae6af876d9e7a7f080c8ffe5ccc1e5f368c81a8e --- package.json | 1 + pnpm-lock.yaml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/package.json b/package.json index 2fbe813fe..a771d3799 100644 --- a/package.json +++ b/package.json @@ -70,6 +70,7 @@ "@vueuse/integrations": "14.2.0", "@vueuse/nuxt": "14.2.0", "@vueuse/router": "^14.2.0", + "defu": "6.1.4", "focus-trap": "^7.8.0", "marked": "17.0.1", "module-replacements": "2.11.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index cc39dfb2a..7fc507471 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -122,6 +122,9 @@ importers: '@vueuse/router': specifier: ^14.2.0 version: 14.2.0(vue-router@4.6.4(vue@3.5.27(typescript@5.9.3)))(vue@3.5.27(typescript@5.9.3)) + defu: + specifier: 6.1.4 + version: 6.1.4 focus-trap: specifier: ^7.8.0 version: 7.8.0 From d50623b1a46e92257b3c90a1a71b2dc78faa079c Mon Sep 17 00:00:00 2001 From: Philippe Serhal Date: Mon, 2 Feb 2026 22:21:19 -0500 Subject: [PATCH 2/6] chore: add debug logs and try fixing GitHub Actions detection --- modules/production.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/modules/production.ts b/modules/production.ts index 19e9786d7..8cf804028 100644 --- a/modules/production.ts +++ b/modules/production.ts @@ -9,7 +9,19 @@ export default defineNuxtModule({ setup() { const nuxt = useNuxt() - if (isCI && provider !== 'github_actions') { + const isGitHubActions = provider === 'github_actions' || !!process.env.GITHUB_ACTIONS + const isTest = process.env.NODE_ENV === 'test' + + console.log('[prod-env]', { + isCI, + provider, + isGitHubActions, + isTest, + GITHUB_ACTIONS: process.env.GITHUB_ACTIONS, + }) + + if (isCI && !isGitHubActions && !isTest) { + console.log('[prod-env] Enabling hydration debugging') nuxt.options.debug = defu(nuxt.options.debug, { hydration: true }) } }, From cf816efdfc7cf6d08c55e849d671212d58432a99 Mon Sep 17 00:00:00 2001 From: Philippe Serhal Date: Mon, 2 Feb 2026 22:30:17 -0500 Subject: [PATCH 3/6] Revert "chore: add debug logs and try fixing GitHub Actions detection" This reverts commit d50623b1a46e92257b3c90a1a71b2dc78faa079c. --- modules/production.ts | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/modules/production.ts b/modules/production.ts index 8cf804028..19e9786d7 100644 --- a/modules/production.ts +++ b/modules/production.ts @@ -9,19 +9,7 @@ export default defineNuxtModule({ setup() { const nuxt = useNuxt() - const isGitHubActions = provider === 'github_actions' || !!process.env.GITHUB_ACTIONS - const isTest = process.env.NODE_ENV === 'test' - - console.log('[prod-env]', { - isCI, - provider, - isGitHubActions, - isTest, - GITHUB_ACTIONS: process.env.GITHUB_ACTIONS, - }) - - if (isCI && !isGitHubActions && !isTest) { - console.log('[prod-env] Enabling hydration debugging') + if (isCI && provider !== 'github_actions') { nuxt.options.debug = defu(nuxt.options.debug, { hydration: true }) } }, From c05a7f062da6d644e6b29fb4b29a25887bda6a08 Mon Sep 17 00:00:00 2001 From: Philippe Serhal Date: Mon, 2 Feb 2026 22:30:31 -0500 Subject: [PATCH 4/6] Revert "fix: do not hit session endpoint in ssr" This reverts commit 50f9c6824095ffa24c3c6b7fa3ffccc103491ec2. --- app/composables/useAtproto.ts | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/composables/useAtproto.ts b/app/composables/useAtproto.ts index 91c35a136..4ee3ad210 100644 --- a/app/composables/useAtproto.ts +++ b/app/composables/useAtproto.ts @@ -1,14 +1,6 @@ import type { UserSession } from '#shared/schemas/userSession' export function useAtproto() { - if (import.meta.server) { - return { - user: ref(null), - pending: ref(false), - logout: async () => {}, - } - } - const { data: user, pending, clear } = useFetch('/api/auth/session') async function logout() { From 890777c7d3171fd05bb680a001490badc9f7a577 Mon Sep 17 00:00:00 2001 From: Philippe Serhal Date: Mon, 2 Feb 2026 22:30:50 -0500 Subject: [PATCH 5/6] Revert "chore: enable hydration debugging only in prod" This reverts commit ae6af876d9e7a7f080c8ffe5ccc1e5f368c81a8e. --- modules/production.ts | 16 ---------------- nuxt.config.ts | 6 ++++++ 2 files changed, 6 insertions(+), 16 deletions(-) delete mode 100644 modules/production.ts diff --git a/modules/production.ts b/modules/production.ts deleted file mode 100644 index 19e9786d7..000000000 --- a/modules/production.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { defineNuxtModule, useNuxt } from 'nuxt/kit' -import { defu } from 'defu' -import { isCI, provider } from 'std-env' - -export default defineNuxtModule({ - meta: { - name: 'prod-env', - }, - setup() { - const nuxt = useNuxt() - - if (isCI && provider !== 'github_actions') { - nuxt.options.debug = defu(nuxt.options.debug, { hydration: true }) - } - }, -}) diff --git a/nuxt.config.ts b/nuxt.config.ts index 379eeb568..8ba28e7b4 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -39,6 +39,12 @@ export default defineNuxtConfig({ css: ['~/assets/main.css', 'vue-data-ui/style.css'], + $production: { + debug: { + hydration: true, + }, + }, + runtimeConfig: { sessionPassword: '', // Upstash Redis for distributed OAuth token refresh locking in production From 46a555f5eae048e4c29b20933216ab0b28407b25 Mon Sep 17 00:00:00 2001 From: Philippe Serhal Date: Mon, 2 Feb 2026 22:30:58 -0500 Subject: [PATCH 6/6] Revert "fix: add missing defu dep" This reverts commit a5237380e730818f8bbef263e3c9d02628cbe2f4. --- package.json | 1 - pnpm-lock.yaml | 3 --- 2 files changed, 4 deletions(-) diff --git a/package.json b/package.json index a771d3799..2fbe813fe 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,6 @@ "@vueuse/integrations": "14.2.0", "@vueuse/nuxt": "14.2.0", "@vueuse/router": "^14.2.0", - "defu": "6.1.4", "focus-trap": "^7.8.0", "marked": "17.0.1", "module-replacements": "2.11.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7fc507471..cc39dfb2a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -122,9 +122,6 @@ importers: '@vueuse/router': specifier: ^14.2.0 version: 14.2.0(vue-router@4.6.4(vue@3.5.27(typescript@5.9.3)))(vue@3.5.27(typescript@5.9.3)) - defu: - specifier: 6.1.4 - version: 6.1.4 focus-trap: specifier: ^7.8.0 version: 7.8.0