27 lines
862 B
JavaScript
27 lines
862 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
|
|
// แนะนำย้ายค่าพวกนี้ไป .env(.local) แล้วใช้ process.env ฝั่งโค้ดแทน
|
|
// เก็บไว้ชั่วคราวได้ถ้ายังไม่ทำ .env
|
|
env: {
|
|
NEXT_PUBLIC_API_BASE: process.env.NEXT_PUBLIC_API_BASE || "http://localhost:8080"
|
|
},
|
|
|
|
images: {
|
|
remotePatterns: [
|
|
// { protocol: "https", hostname: "lcbp3.np-dms.work" },
|
|
],
|
|
},
|
|
|
|
// ลดโอกาส build ล้มเพราะ lint (เฉพาะ production build)
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
|
|
// ถ้าไม่มี TypeScript ไม่ต้องใส่ส่วนนี้
|
|
// typescript: { ignoreBuildErrors: true },
|
|
};
|
|
|
|
module.exports = nextConfig;
|