fix(deploy): sync static assets and nginx CSS route

Copy .next/static and public into standalone after build; serve
/_next/static from nginx; verify CSS in install.sh.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Андрей Бобырев
2026-05-24 23:19:03 +03:00
parent 35c677eede
commit 1196bc3d11
5 changed files with 66 additions and 5 deletions

View File

@@ -5,6 +5,7 @@
"scripts": {
"dev": "next dev",
"build": "prisma generate && next build",
"postbuild": "bash scripts/sync-standalone-assets.sh",
"start": "next start",
"lint": "eslint",
"postinstall": "prisma generate",