-
Notifications
You must be signed in to change notification settings - Fork 27
/
nuxt.config.ts
101 lines (95 loc) · 2.24 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
import { fileURLToPath } from 'url';
import { defineNuxtConfig } from 'nuxt/config';
// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
srcDir: 'src/',
ssr: true,
dev: false,
content: {
documentDriven: false,
markdown: {
anchorLinks: false,
},
highlight: {
theme: 'github-dark', preload: ['ts', 'js', 'css', 'json', 'bash'],
},
},
app: {
pageTransition: { name: 'page', mode: 'out-in' },
head: {
script: [
{ src: 'https://cdnjs.cloudflare.com/ajax/libs/three.js/r134/three.min.js' },
{ src: 'https://cdn.jsdelivr.net/npm/vanta/dist/vanta.waves.min.js' },
],
noscript: [{ children: 'JavaScript is required' }],
link: [{
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap',
}],
},
},
css: ['@/assets/scss/style.scss'],
modules: [
'@nuxt/content',
'@pinia/nuxt',
'@nuxtjs/plausible',
'@primevue/nuxt-module',
'@nuxt/eslint',
'@nuxt/icon',
'@nuxt/image',
],
primevue: {
options: { ripple: true }, importTheme: { from: './assets/theme/primevue-theme.js' },
},
build: {
transpile: ['primevue'],
},
plausible: {
autoOutboundTracking: true,
},
/*
** Auto-import components
* Doc: https://github.com/nuxt/components
*/
components: {
loader: true,
dirs: [
{
path: './components',
pathPrefix: false,
global: true,
extensions: ['vue'],
},
],
},
alias: {
const: fileURLToPath(new URL('./src/common/constants', import.meta.url)),
store: fileURLToPath(new URL('./src/store', import.meta.url)),
components: fileURLToPath(new URL('./src/components', import.meta.url)),
},
image: {
provider: 'ipx',
},
nitro: {
awsAmplify: {
imageSettings: {
dangerouslyAllowSVG: true,
},
},
},
eslint: {
config: {
stylistic: {
indent: 2,
semi: true,
arrowParens: true,
blockSpacing: true,
braceStyle: '1tbs',
commaDangle: 'always-multiline',
quotes: 'single',
quoteProps: 'as-needed',
},
},
},
compatibilityDate: '2024-08-26',
});