fix: добавить postbuild.js для копирования статических файлов

- scripts/postbuild.js: новый скрипт для копирования public и .next/static в .next/standalone
- package.json: запуск postbuild.js после npm run build
- scripts/install.sh: использование postbuild.js вместо ручного копирования
- scripts/manage.sh: использование postbuild.js вместо ручного копирования
- next.config.js: убран outputFileTracingRoot (не работает в Next.js 16)

Теперь стили и статические файлы должны корректно работать в продакшене
This commit is contained in:
kilyabin
2026-03-05 14:21:42 +04:00
parent 39cdf692ce
commit c43bed396e
5 changed files with 106 additions and 45 deletions

View File

@@ -8,7 +8,7 @@
},
"scripts": {
"dev": "node --disable-warning=DEP0169 ./node_modules/next/dist/bin/next dev --webpack -H 0.0.0.0",
"build": "next build --webpack",
"build": "next build --webpack && node scripts/postbuild.js",
"start": "next start -H 0.0.0.0",
"lint": "next lint"
},