fix: align startup copy with 2026 founding and deploy hybrid rendering
- Replace fabricated 12-year/500+/8+ team experience claims with 2026 founding, first-client co-creation, professional team wording - Remove fake case studies and unverified certifications from seeds, cases page, products and ERP upgrade page - Enable Next.js standalone output and production hybrid deployment (Dockerfile.prod, docker-compose.server.yml, Nginx nextjs upstream) - Add linux-musl Prisma engine target and production crypto key build - Sync production CMS database with cleaned seed content
This commit was merged in pull request #21.
This commit is contained in:
@@ -380,20 +380,27 @@ npm run test:all # type-check + lint + coverage + fast E2E
|
||||
|
||||
npm 快捷命令:`npm run deploy`、`npm run deploy:skip-build`、`npm run deploy:rollback`、`npm run deploy:status`。
|
||||
|
||||
### 纯静态构建
|
||||
### 混合渲染构建(当前)
|
||||
|
||||
项目构建后生成纯静态文件,产物位于 `dist/` 目录:
|
||||
项目当前使用 `output: 'standalone'`,构建产物位于 `dist/`:
|
||||
|
||||
```bash
|
||||
npm run build
|
||||
```
|
||||
|
||||
`dist/` 可直接部署到:
|
||||
- Nginx
|
||||
- CDN
|
||||
- Vercel
|
||||
- Netlify
|
||||
- GitHub Pages
|
||||
生产部署采用混合渲染:
|
||||
- Nginx 直接托管 `dist/` 中的公共静态资源(图片、字体、`_next/static` 等)
|
||||
- `/api/*`、`/admin/*` 及 ISR/SSR 回源代理到 Next.js 容器 `novalon-website:3000`
|
||||
- Next.js 容器通过 `Dockerfile.prod` + `docker-compose.server.yml` 启动,SQLite 数据库挂载在 `./data`
|
||||
|
||||
```bash
|
||||
# 本地构建
|
||||
npm run build
|
||||
|
||||
# 服务器构建并启动 Next.js 容器
|
||||
cd /home/novalon/docker-app/novalon-website
|
||||
docker-compose -f docker-compose.server.yml up -d --build
|
||||
```
|
||||
|
||||
### CI/CD
|
||||
|
||||
|
||||
Reference in New Issue
Block a user