Browse Source

fix(nc-gui): remove NUXT_PAGE_TRANSITION_DISABLE

pull/5903/head
Wing-Kam Wong 1 year ago
parent
commit
c2ee042955
  1. 21
      packages/nc-gui/nuxt.config.ts
  2. 2
      packages/nc-gui/package.json

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

@ -17,19 +17,14 @@ export default defineNuxtConfig({
ssr: false,
app: {
pageTransition: process.env.NUXT_PAGE_TRANSITION_DISABLE
? false
: {
name: 'page',
mode: 'out-in',
},
layoutTransition: process.env.NUXT_PAGE_TRANSITION_DISABLE
? false
: {
name: 'layout',
mode: 'out-in',
},
pageTransition: {
name: 'page',
mode: 'out-in',
},
layoutTransition: {
name: 'layout',
mode: 'out-in',
},
/** 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,
},

2
packages/nc-gui/package.json

@ -28,7 +28,7 @@
"coverage": "vitest -c test/vite.config.ts run --coverage",
"build:copy": "pnpm run generate; rm -rf ../nc-lib-gui/lib/dist/; rsync -rvzh ./dist/ ../nc-lib-gui/lib/dist/",
"build:copy:publish": "pnpm run generate; rm -rf ../nc-lib-gui/lib/dist/; rsync -rvzh ./dist/ ../nc-lib-gui/lib/dist/; pnpm publish ../nc-lib-gui",
"ci:run": "export NODE_OPTIONS=\"--max_old_space_size=16384\"; pnpm install; NUXT_PAGE_TRANSITION_DISABLE=true pnpm run build; NUXT_PUBLIC_NC_BACKEND_URL=http://localhost:8080 pnpm run start &"
"ci:run": "export NODE_OPTIONS=\"--max_old_space_size=16384\"; pnpm install; pnpm run build; NUXT_PUBLIC_NC_BACKEND_URL=http://localhost:8080 pnpm run start &"
},
"dependencies": {
"@ckpack/vue-color": "^1.2.0",

Loading…
Cancel
Save