-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnuxt.config.ts
More file actions
127 lines (126 loc) · 2.77 KB
/
Copy pathnuxt.config.ts
File metadata and controls
127 lines (126 loc) · 2.77 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
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
123
124
125
126
127
import tailwindcss from "@tailwindcss/vite";
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: "2024-11-01",
future: {
compatibilityVersion: 5,
},
experimental: {
typedPages: true,
nitroAutoImports: true,
},
vite: {
plugins: [tailwindcss()],
optimizeDeps: {
include: [
"@vue/devtools-core",
"@vue/devtools-kit",
"vue-sonner",
"@vee-validate/zod",
"zod",
"vee-validate",
"class-variance-authority",
"reka-ui",
"clsx",
"tailwind-merge",
"three",
"@tresjs/cientos",
"@tresjs/core",
"@unhead/schema-org/vue",
],
},
build: {
sourcemap: false,
},
},
devtools: { enabled: true },
css: ["~/assets/css/main.css"],
shadcn: {
prefix: "",
componentDir: "app/components/ui",
},
colorMode: {
classSuffix: "",
preference: "dark",
fallback: "dark",
},
app: {
head: {
htmlAttrs: {
lang: "en",
},
charset: "utf-8",
meta: [
{
name: "google-site-verification",
content: "7AlIEVHApOdcvrTQYsuIfcGOyszAV1XQXEoWGaEAJgc",
},
],
},
},
runtimeConfig: {
brevoKey: "",
public: {
umamiWebsiteId: "",
},
},
security: {
headers: {
contentSecurityPolicy: {
"script-src": ["'self'", "'unsafe-inline'", "'wasm-unsafe-eval'", "https:"],
"img-src": ["'self'", "data:", "https://raw.githubusercontent.com"],
},
},
rateLimiter:
process.env.NODE_ENV === "development"
? false
: {
interval: 120000,
tokensPerInterval: 100,
},
},
site: {
url: "https://jjteoh.com",
name: "JJ Teoh",
},
tres: {
devtools: false,
},
router: {
options: {
scrollBehaviorType: "smooth",
},
},
fonts: {
families: [
{
name: "Playfair Display",
provider: "google",
weights: [400, 500, 600, 700, 800],
styles: ["normal", "italic"],
},
{ name: "Geist", provider: "google", weights: [300, 400, 500, 600, 700] },
{ name: "Geist Mono", provider: "google", weights: [400, 500] },
],
defaults: {
fallbacks: {
"sans-serif": ["ui-sans-serif", "system-ui", "Segoe UI", "Helvetica Neue", "Arial"],
serif: ["ui-serif", "Georgia", "Cambria", "Times New Roman"],
monospace: ["ui-monospace", "SFMono-Regular", "Menlo", "Consolas"],
},
},
},
modules: [
"@vueuse/nuxt",
"@nuxtjs/color-mode",
"@nuxt/fonts",
"@nuxt/image",
"@nuxtjs/seo",
"@tresjs/nuxt",
"nuxt-security",
"@vueuse/motion/nuxt",
"shadcn-nuxt",
"@nuxt/icon",
"@nuxt/content",
],
});