Files
ERP_Distribution/distribution_fe/next.config.ts
Kalana B. Thilakarathna 1579936baf
CI/CD - ERP Distribution / Build & Deploy Backend (pull_request) Failing after 10m51s
CI/CD - ERP Distribution / Build & Deploy Frontend (pull_request) Failing after 14m44s
Add Dockerfile and .dockerignore; configure Next.js output settings
2026-09-20 16:36:33 +05:30

13 lines
519 B
TypeScript

import type { NextConfig } from "next"
const nextConfig: NextConfig = {
// react-leaflet's MapContainer doesn't support Strict Mode's dev-only double-invoke of
// mount effects — Leaflet's own map cleanup isn't synchronous, so the second init crashes
// with "Cannot read properties of undefined (reading 'appendChild')" on any page using
// LocationPicker. Production builds never double-invoke, so this only affects local dev.
reactStrictMode: false,
output: "standalone",
}
export default nextConfig