Files
lcbp3.np-dms.work/frontend/next.config.js
2025-09-29 16:30:21 +07:00

24 lines
763 B
JavaScript
Executable File

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
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;