-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
80 lines (78 loc) · 2.23 KB
/
nuxt.config.ts
File metadata and controls
80 lines (78 loc) · 2.23 KB
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
// https://nuxt.com/docs/api/configuration/nuxt-config
import { fileURLToPath, URL } from 'url'
import { siteUrl, apiUrl } from '#utils/app.infos'
export default defineNuxtConfig({
alias: {
'#services': fileURLToPath(new URL('./services', import.meta.url)),
'#models': fileURLToPath(new URL('./models', import.meta.url)),
'#utils': fileURLToPath(new URL('./utils', import.meta.url)),
'#stores': fileURLToPath(new URL('./stores', import.meta.url)),
'#loaders': fileURLToPath(new URL('./loaders', import.meta.url)),
'#components': fileURLToPath(new URL('./components', import.meta.url)),
'#layouts': fileURLToPath(new URL('./layouts', import.meta.url)),
'#pages': fileURLToPath(new URL('./pages', import.meta.url)),
'#tools': fileURLToPath(new URL('./tools', import.meta.url))
},
app: {
head: {
script: [
{
src: `${apiUrl}/analytics.js`,
'data-domain': 'localhost'
},
{ src: 'https://d3js.org/d3.v3.min.js' },
{ src: 'https://d3js.org/topojson.v1.min.js' },
{ src: 'https://datamaps.github.io/scripts/datamaps.all.min.js' }
]
}
},
css: [
'@/assets/css/main.css'
],
ssr: true,
typescript: {
strict: true,
typeCheck: true
},
components: true,
modules: [
'@nuxtjs/tailwindcss',
'@pinia/nuxt',
'nuxt-icons',
'@nuxtjs/sitemap',
'@nuxtjs/color-mode',
'@nuxtjs/google-fonts'
],
colorMode: {
preference: 'system',
fallback: 'light',
classSuffix: ''
},
sitemap: {
sources: [
'/api/__sitemap__/urls'
]
},
googleFonts: {
families: {
Rubik: true
}
},
pinia: {
autoImports: ['defineStore', 'acceptHMRUpdate']
},
// app: {
// pageTransition: { name: 'page', mode: 'out-in' },
// layoutTransition: { name: 'layout', mode: 'out-in' },
// },
runtimeConfig: {
indexable: true,
public: {
siteUrl
}
},
plugins: [],
devtools: {
enabled: true
}
})