mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-01 23:16:51 +00:00
fix: 修复 eslint 报错
This commit is contained in:
@@ -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 }
|
||||
) {
|
||||
|
||||
Reference in New Issue
Block a user