260826_03_ENH: 파일 조회 경로 변경
This commit is contained in:
@@ -3,6 +3,7 @@ import {createEnv, createKriNextConfig, env} from "@kri/common/config";
|
||||
|
||||
const nextEnv = createEnv({
|
||||
API_SERVER: env.required("API_SERVER", process.env.API_SERVER),
|
||||
BACK_SERVER: env.required("BACK_SERVER", process.env.BACK_SERVER),
|
||||
});
|
||||
|
||||
const nextConfig = createKriNextConfig({
|
||||
@@ -10,7 +11,7 @@ const nextConfig = createKriNextConfig({
|
||||
return [
|
||||
{
|
||||
source: "/files/:path*",
|
||||
destination: `${nextEnv.API_SERVER}/files/:path*`,
|
||||
destination: `${nextEnv.BACK_SERVER}/files/:path*`,
|
||||
},
|
||||
];
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user