fix(task-024): make demo browser flow reachable
This commit is contained in:
@@ -7,6 +7,15 @@ const repoRoot = resolve(dirname(fileURLToPath(import.meta.url)), "../..");
|
||||
const nextConfig = {
|
||||
reactStrictMode: true,
|
||||
outputFileTracingRoot: repoRoot,
|
||||
async rewrites() {
|
||||
const backendUrl = process.env.BACKEND_URL ?? "http://localhost:8000";
|
||||
return [
|
||||
{
|
||||
source: "/api/:path*",
|
||||
destination: `${backendUrl}/api/:path*`,
|
||||
},
|
||||
];
|
||||
},
|
||||
turbopack: {
|
||||
root: repoRoot,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user