-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
101 lines (86 loc) · 2.03 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
import { sentryVitePlugin } from '@sentry/vite-plugin'
export default defineNuxtConfig({
modules: [
'./modules/assets',
'@nuxtjs/apollo',
'@nuxtjs/color-mode',
'@nuxtjs/tailwindcss',
'@formkit/nuxt',
'@nuxtjs/i18n',
],
postcss: {
plugins: {
'postcss-for': {},
},
},
css: ['leaflet/dist/leaflet.css', '@vueform/multiselect/themes/default.css', 'v-network-graph/lib/style.css'],
nitro: {
devProxy: {
'/api': 'http://localhost:8080/api',
'/auth': 'http://localhost:8080/auth',
'/dynmap': 'http://localhost:8123',
},
},
build: {
transpile: ['graphql', 'tslib'],
},
apollo: {
clients: { default: 'config/apollo.config.ts' },
},
i18n: {
locales: [
{
code: 'en',
file: 'en_US.json',
name: 'English',
},
{
code: 'de',
file: 'de_DE.json',
name: 'Deutsch',
},
],
strategy: 'no_prefix',
lazy: true,
langDir: 'lang',
defaultLocale: 'en',
},
formkit: {
configFile: 'config/formkit.config.ts',
},
tailwindcss: {
configPath: 'config/tailwind.config.ts',
},
typescript: {
strict: true,
shim: false,
},
vite: {
build: {
sourcemap: true, // Source map generation must be turned on
},
plugins: [
// Put the Sentry vite plugin after all other plugins
sentryVitePlugin({
authToken: process.env.SENTRY_AUTH_TOKEN,
org: 'possible-triangle',
project: 'atlas',
}),
],
},
runtimeConfig: {
public: {
apiUrl: 'http://localhost:3000/api',
sentryEnvironment: 'development',
sentryDsn: '<replace-me>',
},
},
appConfig: {
buildName: process.env.BUILD_NAME ?? 'dev',
buildLink: process.env.BUILD_LINK ?? '',
},
experimental: {
externalVue: false,
},
compatibilityDate: '2024-07-30',
})