[설정 및 상태 관리 개선] Nuxt 설정에 pinia-plugin-persistedstate 추가, package.json 및 package-lock.json 업데이트, tab 및 user 스토어에 persist 기능 적용

This commit is contained in:
2025-08-28 16:59:15 +09:00
parent 285a2662b7
commit 791d21d052
5 changed files with 168 additions and 122 deletions

View File

@@ -7,6 +7,7 @@ export default defineNuxtConfig({
"@nuxt/image",
"@nuxt/icon",
"@pinia/nuxt",
"pinia-plugin-persistedstate/nuxt",
"@nuxtjs/tailwindcss",
],
app: {
@@ -17,14 +18,12 @@ export default defineNuxtConfig({
href: "https://fonts.googleapis.com/icon?family=Material+Icons",
},
],
script: [
{ src: '/dist/igv.js', defer: true }
]
script: [{ src: "/dist/igv.js", defer: true }],
},
},
vite: {
optimizeDeps: {
include: ['cytoscape-overlays'],
include: ["cytoscape-overlays"],
},
build: {
commonjsOptions: {
@@ -33,20 +32,20 @@ export default defineNuxtConfig({
},
},
nitro: {
logLevel: 'debug'
logLevel: "debug",
},
runtimeConfig: {
public: {
apiBase: process.env.API_BASE || 'http://localhost',
contextPath: process.env.CONTEXT_PATH || '/service',
}
apiBase: process.env.API_BASE || "http://localhost",
contextPath: process.env.CONTEXT_PATH || "/service",
},
},
typescript: {
shim: false,
strict: true,
},
plugins: ['~/plugins/vue3-tui-grid.client.ts'],
plugins: ["~/plugins/vue3-tui-grid.client.ts"],
components: [
{ path: '~/components', pathPrefix: false }, // 경로 접두사 제거
]
{ path: "~/components", pathPrefix: false }, // 경로 접두사 제거
],
});