Update frontend new build dev, proc

This commit is contained in:
admin
2025-09-29 16:30:21 +07:00
parent 7dd5ce8015
commit a337732d47
11 changed files with 349 additions and 148 deletions

View File

@@ -1,6 +1,23 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
experimental: { serverActions: { allowedOrigins: ["*"] } },
experimental: {
// เปิด app router (ค่าเริ่มต้นของ Next 15 อยู่แล้ว)
typedRoutes: false,
},
// รองรับการรันหลัง reverse proxy และกำหนด base URL ผ่าน ENV
env: {
NEXT_PUBLIC_API_BASE:
process.env.NEXT_PUBLIC_API_BASE || "http://localhost:8080",
},
// ปรับขนาดภาพ/โดเมนถ้าจำเป็น
images: {
remotePatterns: [
// { protocol: "https", hostname: "lcbp3.np-dms.work" }
],
},
// เปิด SWC minify
swcMinify: true,
};
module.exports = nextConfig;
module.exports = nextConfig;