-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
48 lines (46 loc) · 892 Bytes
/
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
import { resolve } from "path"
// https://v3.nuxtjs.org/docs/directory-structure/nuxt.config
const config = defineNuxtConfig({
modules: [
"@nuxt/content",
"@nuxtjs/robots",
],
compatibilityDate: "2024-10-24",
content: {
markdown: {
remarkPlugins: [
"remark-reading-time",
],
},
highlight: {
preload: [
"diff",
"json",
"js",
"ts",
"css",
"shell",
"html",
"md",
"yaml",
],
theme: "nord",
},
sources: {
blg_content: {
prefix: "/posts",
driver: "fs",
base: resolve(__dirname, "posts/content")
},
},
},
robots: {
configPath: "./robots.config"
},
routeRules: {
"/giscus_theme.css": {
headers: { "Access-Control-Allow-Origin": "https://giscus.app" }
},
},
});
export default config;