Skip to content

Commit d2e791c

Browse files
committed
nextjs
1 parent c498717 commit d2e791c

File tree

4 files changed

+9
-9696
lines changed

4 files changed

+9
-9696
lines changed

.gitignore

+5-1
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,8 @@ yarn-error.log*
4545
# sitemap
4646
/public/robots.txt
4747
/public/sitemap.xml
48-
/public/rss/*
48+
/public/rss/*
49+
50+
51+
# yarn
52+
package-lock.json

next.config.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ module.exports = withBundleAnalyzer({
9393
// })
9494
// }
9595
// 动态主题:添加 resolve.alias 配置,将动态路径映射到实际路径
96-
console.log('加载默认主题', path.resolve(__dirname, 'themes', THEME))
96+
if (!isServer) {
97+
console.log('加载默认主题', path.resolve(__dirname, 'themes', THEME))
98+
}
9799
config.resolve.alias['@theme-components'] = path.resolve(__dirname, 'themes', THEME)
98100
return config
99101
},

0 commit comments

Comments
 (0)