260826_02_ENH: 기존 우회 라우트 제거
This commit is contained in:
@@ -2,7 +2,7 @@ import type { NextConfig } from "next";
|
||||
import {createEnv, createKriNextConfig, env} from "@kri/common/config";
|
||||
|
||||
const nextEnv = createEnv({
|
||||
CONTACT_SERVER: env.required("CONTACT_SERVER", process.env.CONTACT_SERVER),
|
||||
API_SERVER: env.required("API_SERVER", process.env.API_SERVER),
|
||||
});
|
||||
|
||||
const nextConfig = createKriNextConfig({
|
||||
@@ -10,7 +10,7 @@ const nextConfig = createKriNextConfig({
|
||||
return [
|
||||
{
|
||||
source: "/files/:path*",
|
||||
destination: `${nextEnv.CONTACT_SERVER}/files/:path*`,
|
||||
destination: `${nextEnv.API_SERVER}/files/:path*`,
|
||||
},
|
||||
];
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user