We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed6bf6f commit ae6af87Copy full SHA for ae6af87
2 files changed
modules/production.ts
@@ -0,0 +1,16 @@
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
+})
nuxt.config.ts
@@ -39,12 +39,6 @@ export default defineNuxtConfig({
39
40
css: ['~/assets/main.css', 'vue-data-ui/style.css'],
41
42
- $production: {
43
- debug: {
44
- hydration: true,
45
- },
46
47
-
48
runtimeConfig: {
49
sessionPassword: '',
50
// Upstash Redis for distributed OAuth token refresh locking in production
0 commit comments