stremio/apps/admin-ui/next.config.js
Jos Vooges | STH 4e21eb76ae Fix admin-ui Docker image: build as single app so server.js is at /app/server.js.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 00:40:46 +02:00

16 lines
473 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
// Required for Docker image (Dokploy). Local Windows may skip via unset DOCKER_BUILD.
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;