21 lines
824 B
TypeScript
21 lines
824 B
TypeScript
import type { NextConfig } from "next";
|
||
|
||
const nextConfig: NextConfig = {
|
||
// PPR: statik kabuk anında servis edilir, dinamik parçalar (UserNav vb.)
|
||
// Suspense sınırlarının içinde akar. Bkz. docs/cacheComponents.md.
|
||
cacheComponents: true,
|
||
output: "standalone",
|
||
serverExternalPackages: ["better-sqlite3", "iyzipay", "@libsql/client"],
|
||
async redirects() {
|
||
// Eski akış /sonuc modalına taşındı. /rapor/yazdir korunur (tam eşleşme).
|
||
return [
|
||
{ source: "/rapor", destination: "/sonuc", permanent: false },
|
||
{ source: "/sohbet", destination: "/listem", permanent: false },
|
||
// Ayrı robot sayfası kaldırıldı; rehber içi linkler hero formuna düşer.
|
||
{ source: "/tercih-robotu", destination: "/#hero-form", permanent: true },
|
||
];
|
||
},
|
||
};
|
||
|
||
export default nextConfig;
|