-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
82 lines (76 loc) · 2.42 KB
/
nuxt.config.ts
File metadata and controls
82 lines (76 loc) · 2.42 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
81
82
// https://nuxt.com/docs/api/configuration/nuxt-config
import {defineQuasarConfig} from './quasar.config'
export default defineNuxtConfig({
app: {
baseURL: process.env.NUXT_APP_BASE_URL || '/',
head: {
title: 'ZOO-Project Nuxt Client',
meta: [
{
name: 'description',
content: 'ZOO-Project WebApp Client Made with Nuxt3 and VueJS 3.'
}
],
link: [
{rel: 'stylesheet', href: 'https://fonts.googleapis.com/icon?family=Material+Icons'}
]
},
},
compatibilityDate: '2024-12-31',
devtools: {enabled: true},
components: true,
imports: {
dirs: [
// Scan top-level modules
'composables',
// ... or scan all modules within given directory
'composables/**',
]
},
quasar: defineQuasarConfig(),
vue: {
compilerOptions: {}
},
modules: ["@pinia/nuxt", "nuxt-quasar-ui", "@sidebase/nuxt-auth","@nuxtjs/i18n"],
i18n: {
langDir: 'locales',
locales: [
{ code: 'en-US', iso: 'en-US', file: 'en.json', name: 'English' },
{ code: 'fr-FR', iso: 'fr-FR', file: 'fr.json', name: 'Française' }
],
defaultLocale: 'en-US',
lazy: true,
strategy: 'no_prefix',
detectBrowserLanguage: {
useCookie: true,
cookieKey: 'i18n_redirected',
fallbackLocale: 'en-US',
}
},
auth: {
isEnabled: true,
disableServerSideAuth: false,
originEnvKey: 'AUTH_ORIGIN',
provider: {
type: 'authjs',
trustHost: true,
},
sessionRefresh: {
enablePeriodically: false,
enableOnWindowFocus: true,
},
},
runtimeConfig: {
authSecret: process.env.NUXT_AUTH_SECRET,
public: {
quasarBrand: defineQuasarConfig().config.brand,
NUXT_ZOO_BASEURL: process.env.NUXT_ZOO_BASEURL,
NUXT_OIDC_ISSUER: process.env.NUXT_OIDC_ISSUER,
NUXT_OIDC_CLIENT_ID: process.env.NUXT_OIDC_CLIENT_ID,
AUTH_ORIGIN: process.env.AUTH_ORIGIN,
NEXTAUTH_URL: process.env.NEXTAUTH_URL,
ZOO_OGCAPI_REQUIRES_BEARER_TOKEN: process.env.ZOO_OGCAPI_REQUIRES_BEARER_TOKEN,
SUBSCRIBERURL: process.env.SUBSCRIBERURL,
},
}
})