From ed0eeef2ab67e1e657b2bbdd12089f023c164372 Mon Sep 17 00:00:00 2001 From: eggy Date: Wed, 10 Aug 2022 20:42:51 -0400 Subject: [PATCH] fix: god please --- nuxt.config.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/nuxt.config.ts b/nuxt.config.ts index 251e4d7..8f361bd 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -81,4 +81,15 @@ export default defineNuxtConfig({ experimental: { reactivityTransform: true, }, + hooks: { + "vite:extendConfig"(config: any, { isServer }: { isServer: any }) { + if (isServer) { + // Workaround for netlify issue + // https://github.com/nuxt/framework/issues/6204 + config.build.rollupOptions.output.inlineDynamicImports = true; + } + }, + }, + target: "static", + ssr: true, });