- Multi-stage Dockerfile (node:20-alpine, pnpm, standalone) - docker-compose.yml (SQLite volume dahil) - .dockerignore - Gitea CI: lint + build + Docker imaj push - next.config.ts: output standalone eklendi
16 lines
477 B
TypeScript
16 lines
477 B
TypeScript
import type { NextConfig } from "next";
|
||
|
||
const nextConfig: NextConfig = {
|
||
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: "/sohbet", destination: "/sonuc", permanent: false },
|
||
{ source: "/rapor", destination: "/sonuc", permanent: false },
|
||
];
|
||
},
|
||
};
|
||
|
||
export default nextConfig;
|