-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnuxt.config.ts
107 lines (96 loc) · 2.38 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
import tailwindcss from "@tailwindcss/vite";
export default defineNuxtConfig({
app: {
rootId: "app",
rootTag: "body",
head: {
htmlAttrs: {
lang: "en"
},
meta: [
{ "http-equiv": "X-UA-Compatible", content: "IE=edge" },
{ name: "author", content: "Dawit (@oneminch)" },
{ name: "robots", content: "index, follow" }
],
link: [
{
rel: "apple-touch-icon",
sizes: "180x180",
href: "/apple-touch-icon.png"
},
{
rel: "icon",
sizes: "32x32",
href: "/favicon-32x32.png"
},
{
rel: "icon",
sizes: "16x16",
href: "/favicon-16x16.png"
},
{
rel: "manifest",
href: "/site.webmanifest"
}
],
script: [
{
type: "text/partytown",
src: process.env.UMAMI_BASE_URL,
async: true,
"data-website-id": process.env.UMAMI_WEBSITE_ID
}
]
},
pageTransition: { name: "slide", mode: "out-in" },
layoutTransition: { name: "slide", mode: "out-in" }
},
components: [{ path: "~/components", pathPrefix: false }],
content: {
contentHead: false,
highlight: {
theme: "github-dark",
preload: ["py"] // new API: langs
},
ignores: ["drafts", "template.md", "/drafts/", "\\.yml$"],
markdown: {
toc: { depth: 1, searchDepth: 2 }
}
},
css: ["~/assets/css/main.css"],
icon: {
mode: "svg",
clientBundle: {
scan: true
}
},
modules: [
"@nuxt/content",
"@nuxtjs/partytown",
"@nuxtjs/turnstile",
"@nuxt/image",
"@vueuse/nuxt",
"@nuxt/icon"
],
routeRules: {
"/": { prerender: true },
"/**": { prerender: true },
"/bookmarks": { isr: 3600 }
},
runtimeConfig: {
raindropToken: process.env.RAINDROP_TOKEN,
raindropCollectionId: process.env.RAINDROP_COLLECTION_ID,
resendApiKey: process.env.RESEND_API_KEY,
resendFrom: process.env.RESEND_FROM,
resendTo: process.env.RESEND_TO,
umamiApiToken: process.env.UMAMI_API_TOKEN,
umamiWebsiteId: process.env.UMAMI_WEBSITE_ID,
turnstile: { secretKey: process.env.TURNSTILE_SECRET_KEY }
},
telemetry: false,
turnstile: {
siteKey: process.env.TURNSTILE_SITE_KEY
},
compatibilityDate: "2024-11-04",
vite: { plugins: [tailwindcss()] }
});