Skip to content

Commit

Permalink
Merge pull request #119 from LCOGT/fix/hydration-warning
Browse files Browse the repository at this point in the history
fix hydration error for vue config
  • Loading branch information
LTDakin authored Nov 11, 2024
2 parents f40ee97 + 7d99933 commit c9871b2
Showing 1 changed file with 23 additions and 12 deletions.
35 changes: 23 additions & 12 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,27 @@
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: true,
transpileDependencies: true,

pluginOptions: {
vuetify: {
// https://github.com/vuetifyjs/vuetify-loader/tree/next/packages/vuetify-loader
}
},
devServer: {
headers: {
'Cross-Origin-Embedder-Policy':'require-corp',
'Cross-Origin-Opener-Policy':'same-origin',
},
}
pluginOptions: {
vuetify: {
// https://github.com/vuetifyjs/vuetify-loader/tree/next/packages/vuetify-loader
}
},
devServer: {
headers: {
'Cross-Origin-Embedder-Policy':'require-corp',
'Cross-Origin-Opener-Policy':'same-origin',
},
},

chainWebpack: (config) => {
config.plugin('define').tap((definitions) => {
Object.assign(definitions[0], {
__VUE_OPTIONS_API__: 'true',
__VUE_PROD_DEVTOOLS__: 'false',
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__: 'false'
})
return definitions
})
}
})

0 comments on commit c9871b2

Please sign in to comment.