eCourt-note/next.config.mjs
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 83108dd16c
Some checks failed
Deploy eCourt Note Web to Server / Validate Database Schema (Drizzle) (push) Successful in 3s
Deploy eCourt Note Web to Server / Build Web Docker Image (push) Successful in 53s
Deploy eCourt Note Web to Server / Deploy eCourt Note Web to Server (push) Failing after 1s
Deploy eCourt Note Web to Server / Notify Deployment Status (push) Failing after 1s
Add Forgejo CD workflow + Docker image build
- .forgejo/workflows/build.yml: ดัดแปลงจาก e-Ticket — validate db/schema.ts
  (Drizzle) แทน Prisma migrations, image chamomind/ecourt-note,
  deploy ผ่าน SSH (ECOURT_NOTE_TAG), แก้ env ที่ใช้แต่ไม่ได้นิยาม
  (NEXT_PUBLIC_APP_URL) และ vars/secrets.SSH_DEPLOY_USER ไม่สอดคล้อง
- docker/web.Dockerfile: Next.js standalone 3 stages (deps/build/runner)
  พร้อม build-time DATABASE_URL placeholder (db/index.ts throw ถ้าไม่มี env
  ตอนเก็บ page data) + COPY .next/static ที่ standalone ไม่รวม
- .dockerignore กัน .git/node_modules/.next/.env เข้า build context
- next.config.mjs: เปิด output: "standalone"

หมายเหตุ: ยังตรวจ docker build ท้องถิ่นไม่ครบ — ค้างที่ดิสก์ C: เต็ม
(Docker Desktop buildkit read-only) รอเคลียร์พื้นที่ก่อน rerun

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-09-10 15:43:17 +07:00

7 lines
258 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
// สำหรับ Docker (docker/web.Dockerfile) — build แล้วได้ .next/standalone รันด้วย node server.js
output: "standalone",
};
export default nextConfig;