mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
24 lines
542 B
TypeScript
24 lines
542 B
TypeScript
import type { NextConfig } from "next";
|
|||
|
|
|
||
|
|
// const BACKEND_URL = process.env.BACKEND_URL || "http://localhost:8000";
|
||
|
|
|
||
|
|
const nextConfig: NextConfig = {
|
||
|
|
output: "standalone",
|
||
|
|
|
||
|
|
// // Proxy API calls to the backend to avoid CORS issues
|
||
|
|
// async rewrites() {
|
||
|
|
// return [
|
||
|
|
// {
|
||
|
|
// source: "/api/:path*",
|
||
|
|
// destination: `${BACKEND_URL}/api/:path*`,
|
||
|
|
// },
|
||
|
|
// {
|
||
|
|
// source: "/ws/:path*",
|
||
|
|
// destination: `${BACKEND_URL}/ws/:path*`,
|
||
|
|
// },
|
||
|
|
// ];
|
||
|
|
// },
|
||
|
|
};
|
||
|
|
|
||
|
|
export default nextConfig;
|