Files
web-at-transit/frontend/next.config.mjs
T

25 lines
610 B
JavaScript

/** @type {import('next').NextConfig} */
const BACKEND_INTERNAL_URL =
process.env.BACKEND_INTERNAL_URL || "http://localhost:20001";
const nextConfig = {
reactStrictMode: true,
output: "standalone",
images: {
remotePatterns: [{ protocol: "http", hostname: "**" }, { protocol: "https", hostname: "**" }]
},
async rewrites() {
return [
{
source: "/files/:path*",
destination: `${BACKEND_INTERNAL_URL}/files/:path*`
},
{
source: "/api/:path*",
destination: `${BACKEND_INTERNAL_URL}/api/:path*`
}
];
}
};
export default nextConfig;