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() { 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