stremio/apps/admin-ui/next.config.js
Jos Vooges | STH a5c6fd5fe4 Initial commit: Distributed Stremio Media Cluster V1
Master API, Admin UI, Go media-node, Docker/Dokploy deploy configs.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-25 00:17:04 +02:00

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;