14 lines
271 B
JavaScript
14 lines
271 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
async rewrites() {
|
|
return [
|
|
{
|
|
// matching all API routes
|
|
source: "/api/:path*",
|
|
destination: "http://127.0.0.1:8000/:path*"
|
|
}
|
|
]
|
|
}
|
|
};
|
|
|
|
export default nextConfig;
|