FA3-Datafetch/frontend/next.config.ts
2026-01-13 18:16:52 +08:00

25 lines
722 B
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
async rewrites() {
return [
{
source: '/api/:path*',
destination: 'http://127.0.0.1:8000/api/:path*',
},
]
},
experimental: {
turbopack: {
// Explicitly set the root to the current directory (frontend) or project root
// Since the warning says it selected the parent directory as root, but found another lockfile here.
// We can try to force it to ignore the parent one by setting root to this one?
// "root": "./"
// Actually, let's just leave it alone if I am not sure. The user just showed the log.
// It seems harmless.
}
},
};
export default nextConfig;