Browse Source

chore(gui): add cdn path as relative to load assets relative to the path

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3722/head
Pranav C 2 years ago
parent
commit
b886118c74
  1. 5
      packages/nc-gui/nuxt.config.ts

5
packages/nc-gui/nuxt.config.ts

@ -14,6 +14,11 @@ export default defineNuxtConfig({
ssr: false, 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: [ css: [
'virtual:windi.css', 'virtual:windi.css',
'virtual:windi-devtools', 'virtual:windi-devtools',

Loading…
Cancel
Save