diff --git a/packages/nc-gui/nuxt.config.ts b/packages/nc-gui/nuxt.config.ts index 26566c5a5a..411cf9f26d 100644 --- a/packages/nc-gui/nuxt.config.ts +++ b/packages/nc-gui/nuxt.config.ts @@ -14,6 +14,11 @@ export default defineNuxtConfig({ ssr: false, + app: { + /** In production build we need to load assets using relative path, to achieve the result we are using cdnURL */ + cdnURL: process.env.NODE_ENV === 'production' ? '.' : undefined, + }, + css: [ 'virtual:windi.css', 'virtual:windi-devtools',