260702_01_ENH: 리스트 작업 도중 공용 ui를 적용하기 위한 중간 커밋
This commit is contained in:
@@ -1,15 +1,16 @@
|
||||
import type { NextConfig } from "next";
|
||||
import { createEnv, createKriNextConfig, env } from "@kri/common/config";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
/* config options here */
|
||||
output: "standalone",
|
||||
reactCompiler: true,
|
||||
const nextEnv = createEnv({
|
||||
CONTACT_SERVER: env.required("CONTACT_SERVER", process.env.CONTACT_SERVER),
|
||||
});
|
||||
|
||||
const nextConfig = createKriNextConfig({
|
||||
async rewrites() {
|
||||
return [
|
||||
{
|
||||
source: "/contact-senario/:path*",
|
||||
destination: `${process.env.CONTACT_SERVER}/contact-senario/:path*`,
|
||||
destination: `${nextEnv.CONTACT_SERVER}/contact-senario/:path*`,
|
||||
},
|
||||
];
|
||||
},
|
||||
@@ -19,17 +20,17 @@ const nextConfig: NextConfig = {
|
||||
{
|
||||
source: "/api/external/:path*",
|
||||
headers: [
|
||||
{key: "Access-Control-Allow-Credentials", value: "true"},
|
||||
{key: "Access-Control-Allow-Origin", value: "*"},
|
||||
{key: "Access-Control-Allow-Methods", value: "GET,POST,PUT,PATCH,DELETE"},
|
||||
{ key: "Access-Control-Allow-Credentials", value: "true" },
|
||||
{ key: "Access-Control-Allow-Origin", value: "*" },
|
||||
{ key: "Access-Control-Allow-Methods", value: "GET,POST,PUT,PATCH,DELETE" },
|
||||
{
|
||||
key: "Access-Control-Allow-Headers",
|
||||
value: "Content-Type, Authorization, X-Requested-With",
|
||||
},
|
||||
],
|
||||
},
|
||||
]
|
||||
];
|
||||
},
|
||||
};
|
||||
}) satisfies NextConfig;
|
||||
|
||||
export default nextConfig;
|
||||
|
||||
Reference in New Issue
Block a user