1 Star 0 Fork 30

李少腾 / MP_WeiXin_ChatGPT

forked from CyrusZhou / MP_WeiXin_ChatGPT 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
next-utils.config.js 566 Bytes
一键复制 编辑 原始数据 按行查看 历史
CyrusZhou 提交于 2023-05-10 18:50 . 添加后台管理功能
const pc = require('picocolors')
const nextUtilsConfig = () => {
const trueEnv = ['true', '1', 'yes']
const esmExternals = trueEnv.includes(
process.env?.NEXTJS_ESM_EXTERNALS ?? 'false'
)
const tsconfigPath = process.env.NEXTJS_TSCONFIG_PATH
? process.env.NEXTJS_TSCONFIG_PATH
: './tsconfig.json'
console.warn(
`${pc.green('warn -')} experimental.esmExternals is ${
esmExternals ? 'enabled' : 'disabled'
}`
)
return {
esmExternals,
tsconfigPath,
}
}
module.exports = {
loadCustomBuildParams: nextUtilsConfig,
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/li_shao_teng/MP_WeiXin_ChatGPT.git
git@gitee.com:li_shao_teng/MP_WeiXin_ChatGPT.git
li_shao_teng
MP_WeiXin_ChatGPT
MP_WeiXin_ChatGPT
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891