Master API, Admin UI, Go media-node, Docker/Dokploy deploy configs. Co-authored-by: Cursor <cursoragent@cursor.com>
16 lines
463 B
JavaScript
16 lines
463 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
// standalone only needed for Docker; skip on Windows to avoid symlink EPERM
|
|
output: process.env.DOCKER_BUILD === "1" ? "standalone" : undefined,
|
|
async rewrites() {
|
|
const apiUrl = process.env.NEXT_PUBLIC_API_URL ?? "http://localhost:3000";
|
|
return [
|
|
{
|
|
source: "/api/:path*",
|
|
destination: `${apiUrl}/api/:path*`,
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
module.exports = nextConfig;
|