18 lines
313 B
TypeScript
18 lines
313 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
/* config options here */
|
|
output: "standalone",
|
|
async redirects() {
|
|
return [
|
|
{
|
|
destination: "/api",
|
|
source: `http://localhost:${process.env.BACKEND_PORT}`,
|
|
permanent: true,
|
|
},
|
|
];
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|