mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-01 07:26:47 +00:00
nextjs
This commit is contained in:
@@ -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
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user