mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-16 15:27:47 +02:00
22 lines
550 B
JavaScript
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;
|