Update frontend new build dev, proc
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user