fix: netlify workaround
This commit is contained in:
1 parent
45042088f7
commit
67428fdc37
1 file changed
+10
@@ -17,4 +17,14 @@ export default defineNuxtConfig({
|
|||||||
colorMode: {
|
colorMode: {
|
||||||
classSuffix: '',
|
classSuffix: '',
|
||||||
},
|
},
|
||||||
|
// https://github.com/nuxt/framework/issues/6204#issuecomment-1201398080
|
||||||
|
hooks: {
|
||||||
|
'vite:extendConfig': function (config: any, { isServer }: any) {
|
||||||
|
if (isServer) {
|
||||||
|
// Workaround for netlify issue
|
||||||
|
// https://github.com/nuxt/framework/issues/6204
|
||||||
|
config.build.rollupOptions.output.inlineDynamicImports = true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
Reference in new issue
Block a user