@@ -9,8 +9,6 @@ import { fileURLToPath, URL } from 'node:url'
9
9
10
10
import llmstxt from 'vitepress-plugin-llms'
11
11
12
- const prod = ! ! process . env . NETLIFY
13
-
14
12
export default defineConfig ( {
15
13
title : "Xmake" ,
16
14
metaChunk : true ,
@@ -77,8 +75,7 @@ export default defineConfig({
77
75
vite : {
78
76
plugins : [
79
77
groupIconVitePlugin ( ) ,
80
- prod &&
81
- llmstxt ( )
78
+ llmstxt ( )
82
79
] ,
83
80
experimental : {
84
81
enableNativePlugin : true
@@ -112,17 +109,15 @@ export default defineConfig({
112
109
zh : { label : '简体中文' }
113
110
} ,
114
111
115
- transformPageData : prod
116
- ? ( pageData , ctx ) => {
117
- const site = resolveSiteDataByRoute (
118
- ctx . siteConfig . site ,
119
- pageData . relativePath
120
- )
121
- const title = `${ pageData . title || site . title } | ${ pageData . description || site . description } `
122
- ; ( ( pageData . frontmatter . head ??= [ ] ) as HeadConfig [ ] ) . push (
123
- [ 'meta' , { property : 'og:locale' , content : site . lang } ] ,
124
- [ 'meta' , { property : 'og:title' , content : title } ]
125
- )
126
- }
127
- : undefined
112
+ transformPageData : ( pageData , ctx ) => {
113
+ const site = resolveSiteDataByRoute (
114
+ ctx . siteConfig . site ,
115
+ pageData . relativePath
116
+ )
117
+ const title = `${ pageData . title || site . title } | ${ pageData . description || site . description } `
118
+ ; ( ( pageData . frontmatter . head ??= [ ] ) as HeadConfig [ ] ) . push (
119
+ [ 'meta' , { property : 'og:locale' , content : site . lang } ] ,
120
+ [ 'meta' , { property : 'og:title' , content : title } ]
121
+ )
122
+ }
128
123
} )
0 commit comments