-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
63 lines (59 loc) · 1.84 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
// https://nuxt.com/docs/api/configuration/nuxt-config
import {defineQuasarConfig} from './quasar.config'
export default defineNuxtConfig({
app: {
head: {
title: 'ZooProject Nuxt Client',
meta: [
{
name: 'description',
content: 'ZooProject WebApp Client Made with Nuxt3 and VueJS 3.'
}
],
link: [
{rel: 'stylesheet', href: 'https://fonts.googleapis.com/icon?family=Material+Icons'}
]
},
},
compatibilityDate: '2024-04-03',
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"],
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
},
}
})