Reviewed-on: https://codeberg.org/lvl0/dish-planner/pulls/5 Co-authored-by: myrmidex <myrmidex@myrmidex.net> Co-committed-by: myrmidex <myrmidex@myrmidex.net>
15 lines
348 B
TypeScript
15 lines
348 B
TypeScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
reactStrictMode: true,
|
|
// Rewrite /api/* to backend container (from client-side)
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: "/api/:path*",
|
|
destination: "http://backend:80/api/:path*", // internal Docker DNS
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|