2026-02-02 22:55:26 +09:00
|
|
|
import type { NextConfig } from "next";
|
|
|
|
|
|
|
|
|
|
const nextConfig: NextConfig = {
|
2026-02-07 23:09:22 +09:00
|
|
|
output: "standalone",
|
|
|
|
|
async rewrites() {
|
|
|
|
|
return [
|
|
|
|
|
{
|
|
|
|
|
source: "/api/:path*",
|
|
|
|
|
destination: `${process.env.BACKEND_URL || "http://localhost:8000"}/api/:path*`,
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
},
|
|
|
|
|
async headers() {
|
|
|
|
|
return [
|
|
|
|
|
{
|
|
|
|
|
source: "/(.*)",
|
|
|
|
|
headers: [
|
|
|
|
|
{ key: "X-Frame-Options", value: "DENY" },
|
|
|
|
|
{ key: "X-Content-Type-Options", value: "nosniff" },
|
|
|
|
|
{ key: "Referrer-Policy", value: "strict-origin-when-cross-origin" },
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
},
|
2026-02-02 22:55:26 +09:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default nextConfig;
|