[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: enable hydration debugging only in prod

+16 -6
+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 - 48 42 runtimeConfig: { 49 43 sessionPassword: '', 50 44 // Upstash Redis for distributed OAuth token refresh locking in production