[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 (#808)

authored by

Daniel Roe and committed by
GitHub
6e380b83 b1ee624a

+20 -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
+1
package.json
··· 70 70 "@vueuse/integrations": "14.2.0", 71 71 "@vueuse/nuxt": "14.2.0", 72 72 "@vueuse/router": "^14.2.0", 73 + "defu": "6.1.4", 73 74 "focus-trap": "^7.8.0", 74 75 "marked": "17.0.1", 75 76 "module-replacements": "2.11.0",
+3
pnpm-lock.yaml
··· 122 122 '@vueuse/router': 123 123 specifier: ^14.2.0 124 124 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)) 125 + defu: 126 + specifier: 6.1.4 127 + version: 6.1.4 125 128 focus-trap: 126 129 specifier: ^7.8.0 127 130 version: 7.8.0