Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions app/next.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import type { NextConfig } from "next";

const OXCODE = "https://www.oxcode.ai";

const nextConfig: NextConfig = {
reactCompiler: true,
// Proxy tier2 streaming tool requests directly to the Python runner,
Expand All @@ -13,6 +15,15 @@ const nextConfig: NextConfig = {
},
];
},
async redirects() {
return [
// Root needs its own rule: the catch-all param below cannot match an empty path.
{ source: "/", destination: OXCODE, permanent: false },
// api/ is excluded because redirects run before rewrites — catching it
// would disable the tool route handler and the streaming proxy above.
{ source: "/:path((?!api/).*)", destination: OXCODE, permanent: false },
];
},
};

export default nextConfig;
Loading