sentimind / next.config.ts
anggars's picture
Sync from GitHub Actions: e01f9df8b054a5718601dd513fd3516293f9eac8
0630ed4 verified
raw
history blame contribute delete
351 Bytes
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
rewrites: async () => {
return [
{
source: "/api/:path*",
destination:
process.env.NODE_ENV === "development"
? "http://127.0.0.1:8000/api/:path*"
: "/api/:path*",
},
];
},
};
export default nextConfig;