t3-code-android-nightly/.repos/alchemy-effect/packages/frontend-frameworks/fixtures/nextjs/next.config.mjs
Julius Marminge e3c85ead63
chore(refs): sync Effect and Alchemy references to rc.115 and beta.78 (#12327)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-09-17 23:21:25 -07:00

22 lines
550 B
JavaScript

/** @type {import("next").NextConfig} */
const nextConfig = {
// next.config routing surface, asserted by the smoke tests.
async redirects() {
return [{ source: "/old-home", destination: "/", permanent: true }];
},
async rewrites() {
return [{ source: "/rewritten-hello", destination: "/api/hello" }];
},
async headers() {
return [
{
source: "/api/:path*",
headers: [
{ key: "x-fixture-config-header", value: "from-next-config" },
],
},
];
},
};
export default nextConfig;