Files
gb-site/frontend/next.config.ts
Ivan Liashkevich a30fe60414
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
Add local development environment with switchable backend
Set up local dev workflow: SSH tunnel to dev DB, Next.js API proxy
via rewrites, Docker or native backend on port 5000. Update and
restructure project documentation.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 01:02:56 +02:00

18 lines
342 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "standalone",
async rewrites() {
const apiUrl = process.env.LOCAL_API_URL;
if (!apiUrl) return [];
return [
{
source: "/api/:path*",
destination: `${apiUrl}/api/:path*`,
},
];
},
};
export default nextConfig;