feat: 添加国内镜像配置并优化Docker构建
- 添加.yarnrc.yml、.yarnrc和.npmrc配置文件使用国内镜像源 - 更新Dockerfile使用阿里云镜像源并优化构建流程 - 添加sharp依赖用于图片处理 - 创建DOCKER_NETWORK_SOLUTIONS.md文档记录构建问题解决方案 - 简化logger.ts和useCssLoader.ts的配置逻辑 - 设置生产环境构建时明确指定NODE_ENV
This commit is contained in:
parent
866b06484e
commit
1b70025aac
10 changed files with 1478 additions and 24 deletions
|
@ -4,7 +4,7 @@
|
|||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"build": "next build",
|
||||
"build": "NODE_ENV=production next build",
|
||||
"start": "next start",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"lint": "next lint"
|
||||
|
@ -91,6 +91,7 @@
|
|||
"postcss-preset-mantine": "1.17.0",
|
||||
"postcss-simple-vars": "^7.0.1",
|
||||
"sass": "^1.77.8",
|
||||
"sharp": "^0.34.3",
|
||||
"tailwindcss": "^3.4.10",
|
||||
"typescript": "5.5.2"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue