-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnuxt.config.js
More file actions
65 lines (58 loc) · 1.15 KB
/
nuxt.config.js
File metadata and controls
65 lines (58 loc) · 1.15 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
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
runtimeConfig: {
public: {
authEndpoint: process.env.NUXT_PUBLIC_AUTH_ENDPOINT,
userEndpoint: process.env.NUXT_PUBLIC_USER_ENDPOINT,
authOrigin: process.env.NUXT_PUBLIC_AUTH_ORIGIN,
graphQlAuthEndpoint: process.env.NUXT_PUBLIC_GRAPHQL_AUTH_ENDPOINT
}
},
css: [
'~/assets/css/tailwind.css',
'~/assets/css/main.css'
],
components: {
"dirs": [
{
"path": "~/components/module-form-fields",
"global": true
},
"~/components"
]
},
modules: [
'@sidebase/nuxt-auth',
'@nuxtjs/apollo',
'@pinia/nuxt',
'@nuxtjs/i18n',
'nuxt-icons'
],
auth: {
origin: process.env.NUXT_PUBLIC_AUTH_ORIGIN
},
apollo: {
clients: {
default: {
httpEndpoint: process.env.NUXT_PUBLIC_GRAPHQL_ENDPOINT
}
}
},
i18n: {
locales: [
{
code: 'de',
file: 'de-DE.json'
}
],
lazy: true,
langDir: 'lang',
defaultLocale: 'de'
},
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
}
}
})