artifacts-dashboard/frontend/next.config.ts
Jarvis 22fec7c937 feat: add Next.js rewrite for /api → backend proxy
Routes /api/* requests to backend:8000 internally via Docker network.
Replaces nginx reverse proxy with Next.js built-in rewrites.
2026-03-01 22:02:46 +01:00

26 lines
451 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
turbopack: {
root: __dirname,
},
async rewrites() {
return [
{
source: "/api/:path*",
destination: "http://backend:8000/:path*",
},
];
},
images: {
remotePatterns: [
{
protocol: "https",
hostname: "artifactsmmo.com",
pathname: "/images/**",
},
],
},
};
export default nextConfig;