| 1 | const backendOrigin = process.env.BACKEND_INTERNAL_URL ?? "http://backend:8080"; |
| 2 | |
| 3 | const nextConfig = { |
| 4 | reactStrictMode: true, |
| 5 | poweredByHeader: false, |
| 6 | output: "standalone", |
| 7 | images: { |
| 8 | remotePatterns: [ |
| 9 | { protocol: "https", hostname: "**.ticketmaster.com" }, |
| 10 | { protocol: "https", hostname: "**.tmol.io" }, |
| 11 | { protocol: "https", hostname: "s1.ticketm.net" }, |
| 12 | { protocol: "https", hostname: "**.seatgeek.com" }, |
| 13 | ], |
| 14 | }, |
| 15 | async rewrites() { |
| 16 | return [{ source: "/api/:path*", destination: `${backendOrigin}/api/:path*` }]; |
| 17 | }, |
| 18 | }; |
| 19 | |
| 20 | export default nextConfig; |