16 lines
278 B
TypeScript
16 lines
278 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const nextConfig: NextConfig = {
|
|
/* config options here */
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
source: '/api/:path*',
|
|
destination: 'http://localhost:3001/:path*',
|
|
}
|
|
]
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|