fix: 修复 eslint 报错

This commit is contained in:
LooseLi
2025-05-27 10:06:47 +08:00
parent 3366dd4a6c
commit 84236f3cff
12 changed files with 29 additions and 22 deletions

View File

@@ -117,7 +117,7 @@ const nextConfig = {
// 默认将feed重定向至 /public/rss/feed.xml
redirects: process.env.EXPORT
? undefined
: async () => {
: () => {
return [
{
source: '/feed',
@@ -129,7 +129,7 @@ const nextConfig = {
// 重写url
rewrites: process.env.EXPORT
? undefined
: async () => {
: () => {
// 处理多语言重定向
const langsRewrites = []
if (BLOG.NOTION_PAGE_ID.indexOf(',') > 0) {
@@ -176,7 +176,7 @@ const nextConfig = {
},
headers: process.env.EXPORT
? undefined
: async () => {
: () => {
return [
{
source: '/:path*{/}?',
@@ -217,7 +217,7 @@ const nextConfig = {
experimental: {
scrollRestoration: true
},
exportPathMap: async function (
exportPathMap: function (
defaultPathMap,
{ dev, dir, outDir, distDir, buildId }
) {