first commit

This commit is contained in:
nBiqoz
2025-10-05 17:09:01 +02:00
parent 3f79dc7c9c
commit 96dd721fcb

View File

@@ -1,15 +1,27 @@
import type { NextConfig } from "next"; import type { NextConfig } from "next";
const nextConfig: NextConfig = { const nextConfig: NextConfig = {
/* config options here */ async headers() {
allowedDevOrigins: [ return [
"10.8.0.2", {
"*.local", source: "/api/:path*",
"dashboard.cercle-gpt.com", headers: [
"*.cercle-gpt.com", {
"localhost:3000", key: "Access-Control-Allow-Origin",
"127.0.0.1:3000", value: "https://dashboard.cercle-gpt.com",
], },
{
key: "Access-Control-Allow-Methods",
value: "GET, POST, PUT, DELETE, OPTIONS",
},
{
key: "Access-Control-Allow-Headers",
value: "Content-Type, Authorization",
},
],
},
];
},
}; };
export default nextConfig; export default nextConfig;