Skip to content

Commit

Permalink
chore: fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
jiazengp committed Aug 1, 2023
1 parent f7b11dc commit a79eed3
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions .vitepress/config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import { jaConfig } from './ja'
import { krConfig } from './kr'
import { frConfig } from './fr'

export const links: any[] = []
export const isProd = process.env.NODE_ENV === 'production'
export const commitRef = process.env.COMMIT_REF?.slice(0, 8) || 'dev'
export const productionHead: HeadConfig[] = [
Expand Down Expand Up @@ -318,14 +317,6 @@ export default defineConfig({
md.use(figure)
},
},
transformHtml: (_, id, { pageData }) => {
if (!/[\\/]404\.html$/.test(id))
links.push({
// you might need to change this if not using clean urls mode
url: pageData.relativePath.replace(/((^|\/)index)?\.md$/, '$2'),
lastmod: pageData.lastUpdated,
})
},
buildEnd: (config) => {
genFeed(config)
},
Expand Down

0 comments on commit a79eed3

Please sign in to comment.