Skip to content

Commit

Permalink
nextjs
Browse files Browse the repository at this point in the history
  • Loading branch information
tangly1024 committed Feb 2, 2024
1 parent c498717 commit d2e791c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9,696 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,8 @@ yarn-error.log*
# sitemap
/public/robots.txt
/public/sitemap.xml
/public/rss/*
/public/rss/*


# yarn
package-lock.json
4 changes: 3 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ module.exports = withBundleAnalyzer({
// })
// }
// 动态主题:添加 resolve.alias 配置,将动态路径映射到实际路径
console.log('加载默认主题', path.resolve(__dirname, 'themes', THEME))
if (!isServer) {
console.log('加载默认主题', path.resolve(__dirname, 'themes', THEME))
}
config.resolve.alias['@theme-components'] = path.resolve(__dirname, 'themes', THEME)
return config
},
Expand Down
Loading

0 comments on commit d2e791c

Please sign in to comment.