-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
81 lines (81 loc) · 2.04 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
srcDir: './src',
imports: {
dirs: [
'composables',
// ... or scan modules nested one level deep with a specific name and file extension
'composables/*/**.{ts,js,mjs,mts}',
// ... or scan all modules within given directory
]
},
components: {
dirs: [
{
global: true,
path: '~/components',
extensions: ['vue'],
},
{
global: true,
path: '~/components/global',
pathPrefix: false,
extensions: ['vue'],
},
]
},
modules: [
'@vueform/nuxt',
'@pinia/nuxt',
// 'nuxt-mongoose',
'@vueuse/nuxt',
'@invictus.codes/nuxt-vuetify'
],
// mongoose: {
// uri: process.env.MONGODB_URI,
// options: {},
// modelsDir: 'models',
// },
build: {
transpile: ['@fawmi/vue-google-maps']
},
alias: {
'@constant': './src/constant'
},
app: {
head: {
link: [
{ rel: 'icon', type: 'image/jpg', href: '/favicon.jpg' },
{
rel: "stylesheet",
href: "https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap"
},
],
script: [{ src: 'https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js', integrity: 'sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM', crossorigin: 'anonymous'}]
}
},
experimental: {
watcher: "chokidar",
},
css: [
// 'bootstrap/dist/css/bootstrap.min.css',
// '~/styles/reset.css',
'~/styles/_app.scss',
],
vuetify: {
moduleOptions: {
treeshaking: true,
useIconCDN: true,
styles: 'sass',
autoImport: true,
useVuetifyLabs: true,
}
},
runtimeConfig: {
public: {
googleMapApiKey: process.env.GOOGLE_MAP_API_KEY || '',
baseURL: process.env.BASE_URL || `localhost:${process.env.PORT}`,
}
}
})