Browse Source

fix(nc-gui): add back NUXT_PAGE_TRANSITION_DISABLE

pull/5903/head
Wing-Kam Wong 1 year ago
parent
commit
a89879bdf7
  1. 20
      packages/nc-gui/nuxt.config.ts

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

@ -17,14 +17,18 @@ export default defineNuxtConfig({
ssr: false, ssr: false,
app: { app: {
pageTransition: { pageTransition: process.env.NUXT_PAGE_TRANSITION_DISABLE
name: 'page', ? false
mode: 'out-in', : {
}, name: 'page',
layoutTransition: { mode: 'out-in',
name: 'layout', },
mode: 'out-in', layoutTransition: process.env.NUXT_PAGE_TRANSITION_DISABLE
}, ? false
: {
name: 'layout',
mode: 'out-in',
},
/** In production build we need to load assets using relative path, to achieve the result we are using cdnURL */ /** 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, cdnURL: process.env.NODE_ENV === 'production' ? '.' : undefined,
}, },

Loading…
Cancel
Save