The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 07:15 UTC
| 1 | /** @type {import("next").NextConfig} */ |
| 2 | const nextConfig = { |
| 3 | // next.config routing surface, asserted by the smoke tests. |
| 4 | async redirects() { |
| 5 | return [{ source: "/old-home", destination: "/", permanent: true }]; |
| 6 | }, |
| 7 | async rewrites() { |
| 8 | return [{ source: "/rewritten-hello", destination: "/api/hello" }]; |
| 9 | }, |
| 10 | async headers() { |
| 11 | return [ |
| 12 | { |
| 13 | source: "/api/:path*", |
| 14 | headers: [{ key: "x-fixture-config-header", value: "from-next-config" }], |
| 15 | }, |
| 16 | ]; |
| 17 | }, |
| 18 | }; |
| 19 | |
| 20 | export default nextConfig; |