init: SR System — Helpdesk & ITAM Portal

This commit is contained in:
pray4skylark
2026-06-02 13:50:39 +09:00
commit 832c9f096f
262 changed files with 30470 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
import type { NextConfig } from "next";
const API_DEST = process.env.API_BACKEND_URL || "http://localhost:8080/api/v1";
const nextConfig: NextConfig = {
output: "standalone",
allowedDevOrigins: ["192.168.31.168", "192.168.31.168:3000", "192.168.31.168:3443", "localhost", "127.0.0.1"],
async rewrites() {
return [
{
source: "/api/v1/:path*",
destination: `${API_DEST}/:path*`,
},
];
},
async headers() {
return [
{
source: "/api/v1/:path*",
headers: [
{ key: "Access-Control-Allow-Origin", value: "*" },
{ key: "Access-Control-Allow-Methods", value: "GET,POST,PUT,DELETE,PATCH,OPTIONS" },
{ key: "Access-Control-Allow-Headers", value: "Content-Type, Authorization" },
],
},
];
},
};
export default nextConfig;