import type { NextConfig } from "next"; const nextConfig: NextConfig = { output: 'standalone', serverExternalPackages: ['busboy'], experimental: { middlewareClientMaxBodySize: '500mb', }, async rewrites() { const martinUrl = process.env.MARTIN_URL || 'http://martin:3000'; return [ { source: '/tiles/:path*', destination: `${martinUrl}/:path*`, }, ]; }, }; export default nextConfig;