[READ-ONLY] a fast, modern browser for the npm registry
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: revert ae6af87 and 50f9c68 (#797)

authored by

Philippe Serhal and committed by
GitHub
b1ee624a 50f9c682

+6 -24
-8
app/composables/useAtproto.ts
··· 1 1 import type { UserSession } from '#shared/schemas/userSession' 2 2 3 3 export function useAtproto() { 4 - if (import.meta.server) { 5 - return { 6 - user: ref(null), 7 - pending: ref(false), 8 - logout: async () => {}, 9 - } 10 - } 11 - 12 4 const { data: user, pending, clear } = useFetch<UserSession | null>('/api/auth/session') 13 5 14 6 async function logout() {
-16
modules/production.ts
··· 1 - import { defineNuxtModule, useNuxt } from 'nuxt/kit' 2 - import { defu } from 'defu' 3 - import { isCI, provider } from 'std-env' 4 - 5 - export default defineNuxtModule({ 6 - meta: { 7 - name: 'prod-env', 8 - }, 9 - setup() { 10 - const nuxt = useNuxt() 11 - 12 - if (isCI && provider !== 'github_actions') { 13 - nuxt.options.debug = defu(nuxt.options.debug, { hydration: true }) 14 - } 15 - }, 16 - })
+6
nuxt.config.ts
··· 39 39 40 40 css: ['~/assets/main.css', 'vue-data-ui/style.css'], 41 41 42 + $production: { 43 + debug: { 44 + hydration: true, 45 + }, 46 + }, 47 + 42 48 runtimeConfig: { 43 49 sessionPassword: '', 44 50 // Upstash Redis for distributed OAuth token refresh locking in production