-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
122 lines (114 loc) · 2.85 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
app: {
head: {
htmlAttrs: {
lang: 'en',
},
title: 'JOSA Community',
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{
hid: 'description',
name: 'description',
content:
'Join JOSA to not only develop soft and organizational skills, but become part of a dynamic and exceptional network of geeks and agents of change by giving back to the community.',
},
{ name: 'format-detection', content: 'telephone=no' },
{ name: 'theme-color', content: '#1a1f21' },
],
link: [
{
hid: 'icon',
rel: 'icon',
type: 'image/x-icon',
href: '/favicon.ico',
},
],
},
},
modules: [
'@nuxtjs/tailwindcss',
'@kevinmarrec/nuxt-pwa',
'@nuxtjs/robots',
'@nuxtjs/sitemap',
'@sidebase/nuxt-auth',
],
css: [
'@/assets/css/typography.css',
'@/assets/css/form.css',
'@/assets/css/global.css',
],
tailwindcss: {
cssPath: '@/assets/css/tailwind.css',
configPath: 'tailwind.config.js',
exposeConfig: false,
injectPosition: 0,
viewer: true,
},
plugins: [
{
src: '~/plugins/matomo-plugin.client.js',
ssr: false,
},
],
// REF: https://v3.nuxtjs.org/guide/going-further/runtime-config/
runtimeConfig: {
// Keys within public, will be also exposed to the client-side
public: {
communityApiUrl: '',
authBaseUrl: '',
targetEnv: '',
buildCommitSha: '',
buildCommitLink: '',
buildNumber: '',
buildLink: '',
buildRepoLink: '',
buildTimestamp: '',
debug: '',
sessionCookieName: 'access_token',
matomoSiteId: 13,
matomoHost: 'https://analytics.josa.ngo',
},
},
pwa: {
meta: {
name: 'JOSA Community',
},
manifest: {
lang: 'en',
},
},
auth: {
originEnvKey: 'NUXT_PUBLIC_AUTH_BASE_URL',
baseURL: 'https://community.api.prod.josa.ngo/v2/auth/',
provider: {
type: 'local',
endpoints: {
signIn: { path: 'login', method: 'post' },
signOut: { path: 'logout', method: 'get' },
getSession: { path: '', method: 'get' },
},
token: {
signInResponseTokenPointer: '/access_token',
cookieName: 'access_token',
type: 'Bearer',
maxAgeInSeconds: 60 * 60 * 24,
secureCookieAttribute: true,
httpOnlyCookieAttribute: true, // NOTE: disable in local development
},
session: {
dataType: {
id: 'string',
username: 'string',
iat: 'number',
exp: 'number',
},
},
},
},
build: {
transpile: ['@vuepic/vue-datepicker'],
},
})