/** @type {import('next').NextConfig} */
const nextConfig = {
  // basePath removed: Coolify's Traefik strips the /sistem-km-next prefix before
  // forwarding to this container, so Next.js must respond at root /.
  // The Traefik path /sistem-km-next -> container / mapping handles routing.

  // Allow the Coolify deployment domain to access Next.js dev resources.
  // Without this, Next.js 16 blocks all JS chunks from loading on non-localhost domains,
  // causing a completely blank white page.
  allowedDevOrigins: ['r48w884socg80c8sw0c04cow.203.24.51.230.sslip.io'],
};

export default nextConfig;
