-
Notifications
You must be signed in to change notification settings - Fork 197
/
Copy pathnuxt.config.ts
100 lines (88 loc) · 2.1 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
// https://nuxt.com/docs/api/configuration/nuxt-config
import { readFileSync } from 'fs';
const packageJson = readFileSync('package.json', 'utf8');
const version = JSON.parse(packageJson).version;
export default defineNuxtConfig({
compatibilityDate: '2024-11-01',
devtools: { enabled: true },
future: {
compatibilityVersion: 4
},
ssr: true,
app: {
head: {
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.svg' }
]
}
},
// when enabling ssr option you need to disable inlineStyles and maybe devLogs
features: {
inlineStyles: false,
devLogs: false,
},
build: {
transpile: ['vuetify'],
},
vite: {
ssr: {
noExternal: ['vuetify'],
},
},
css: [],
modules: ['@nuxt/fonts', 'vuetify-nuxt-module', '@nuxt/eslint', 'nuxt-auth-utils'],
vuetify: {
moduleOptions: {
// check https://nuxt.vuetifyjs.com/guide/server-side-rendering.html
ssrClientHints: {
reloadOnFirstRequest: false,
viewportSize: true,
prefersColorScheme: false,
prefersColorSchemeOptions: {
useBrowserThemeOnly: false,
},
},
// /* If customizing sass global variables ($utilities, $reset, $color-pack, $body-font-family, etc) */
// disableVuetifyStyles: true,
styles: {
configFile: 'assets/settings.scss',
},
},
},
auth: {
github: {
enabled: true,
clientId: '',
clientSecret: '',
scope: ''
}
},
nitro: {
plugins: [
'plugins/http-agent',
],
},
runtimeConfig: {
githubToken: '',
session: {
// set to 6h - same as the GitHub token
maxAge: 60 * 60 * 6,
password: '',
},
oauth: {
github: {
clientId: '',
clientSecret: '',
}
},
public: {
isDataMocked: false, // can be overridden by NUXT_PUBLIC_IS_DATA_MOCKED environment variable
scope: 'organization', // can be overridden by NUXT_PUBLIC_SCOPE environment variable
githubOrg: '',
githubEnt: '',
githubTeam: '',
usingGithubAuth: false,
version
}
}
})