kv-tube/frontend/next.config.mjs
2026-03-26 14:16:55 +07:00

28 lines
676 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
output: "standalone",
images: {
remotePatterns: [
{
protocol: 'https',
hostname: 'i.ytimg.com',
},
{
protocol: 'https',
hostname: 'yt3.ggpht.com',
},
],
},
async rewrites() {
// Backend runs on port 8080 inside the container
const apiBase = 'http://localhost:8080';
return [
{
source: '/api/:path*',
destination: `${apiBase}/api/:path*`,
},
];
},
};
export default nextConfig;