-
Notifications
You must be signed in to change notification settings - Fork 1
/
nuxt.config.ts
45 lines (45 loc) · 936 Bytes
/
nuxt.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
typescript: {
strict: true,
},
ssr: false,
runtimeConfig: {
apiSecret: '123',
public: {
apiBase: '/api',
API_BASE_URL: process.env.API_BASE_URL,
},
},
modules: [
[
'@pinia/nuxt',
{
autoImports: ['defineStore', 'acceptHMRUpdate'],
},
],
'@pinia-plugin-persistedstate/nuxt',
],
imports: {
dirs: ['stores'],
},
build: {
transpile:
process.env.NODE_ENV === 'production'
? [
'naive-ui',
'vueuc',
'@css-render/vue3-ssr',
'@juggle/resize-observer',
]
: ['@juggle/resize-observer'],
},
vite: {
optimizeDeps: {
include:
process.env.NODE_ENV === 'development'
? ['naive-ui', 'vueuc', 'date-fns-tz/esm/formatInTimeZone']
: [],
},
},
})