mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-04 23:16:53 +00:00
取消自动清理sitemap
This commit is contained in:
@@ -33,14 +33,14 @@ const locales = (function () {
|
|||||||
})()
|
})()
|
||||||
|
|
||||||
// 编译前执行
|
// 编译前执行
|
||||||
const preBuild = (function () {
|
// const preBuild = (function () {
|
||||||
// 删除 public/sitemap.xml 文件 ; 否则会和/pages/sitemap.xml.js 冲突。
|
// // 删除 public/sitemap.xml 文件 ; 否则会和/pages/sitemap.xml.js 冲突。
|
||||||
const sitemapPath = path.resolve(__dirname, 'public', 'sitemap.xml')
|
// const sitemapPath = path.resolve(__dirname, 'public', 'sitemap.xml')
|
||||||
if (fs.existsSync(sitemapPath)) {
|
// if (fs.existsSync(sitemapPath)) {
|
||||||
fs.unlinkSync(sitemapPath)
|
// fs.unlinkSync(sitemapPath)
|
||||||
console.log('Deleted existing sitemap.xml from public directory')
|
// console.log('Deleted existing sitemap.xml from public directory')
|
||||||
}
|
// }
|
||||||
})()
|
// })()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 扫描指定目录下的文件夹名,用于获取所有主题
|
* 扫描指定目录下的文件夹名,用于获取所有主题
|
||||||
|
|||||||
Reference in New Issue
Block a user