-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
46 lines (43 loc) · 960 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
46
import vuetify from "vite-plugin-vuetify";
export default defineNuxtConfig({
typescript: {
shim: false
},
runtimeConfig: {
public: {
apiBase: process.env.NUXT_API_BASE || 'http://localhost:8000',
}
},
srcDir: 'client/',
app: {
head: {
charset: 'utf-8',
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, minimal-ui' },
]
}
},
css: ["@/assets/main.scss"],
build: {
transpile: ['vuetify', '@vuepic/vue-datepicker'],
},
modules: [
async (options, nuxt) => {
nuxt.hooks.hook('vite:extendConfig', (config: any) => config.plugins.push(
vuetify()
))
},
'nuxt-icon'
],
vite: {
define: {
'process.env.DEBUG': false,
},
},
ssr: false,
router: {
options: {
hashMode: true
}
}
})