generated from Real-Dev-Squad/website-template
-
Notifications
You must be signed in to change notification settings - Fork 20
/
nuxt.config.ts
49 lines (48 loc) · 1.09 KB
/
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
46
47
48
49
// https://nuxt.com/docs/api/configuration/nuxt-config
import vuetify from 'vite-plugin-vuetify'
export default defineNuxtConfig({
typescript: {
shim: false,
strict: true
},
css: [
'vuetify/styles',
'@mdi/font/css/materialdesignicons.css'
],
build: {
transpile: ['vuetify']
},
modules: [
'nuxt-icon',
'@pinia/nuxt',
'@pinia-orm/nuxt',
async (options, nuxt) => {
nuxt.hooks.hook('vite:extendConfig', config => { config.plugins?.push(vuetify()) })
}
],
plugins: [{ src: '~/plugins/font.ts', mode: 'client' }],
vite: {
ssr: {
noExternal: ['vuetify']
}
},
pinia: {
autoImports: [
// automatically imports `defineStore`
'defineStore', // import { defineStore } from 'pinia'
['defineStore', 'definePiniaStore'], // import { defineStore as definePiniaStore } from 'pinia'
['useRepo', 'usePinaRepo']
]
},
runtimeConfig: {
public: {
GOALS_API: process.env.NUXT_PUBLIC_GOAL_API,
RDS_API: process.env.NUXT_PUBLIC_RDS_API,
}
},
imports: {
dirs: [
'composables',
]
}
})