260826_03_ENH: 파일 조회 경로 변경
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
NEXT_PUBLIC_ENV=development
|
||||
ENV=development
|
||||
API_SERVER=http://127.0.0.1:6107/api/v1
|
||||
BACK_SERVER=http://127.0.0.1:6107
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
NEXT_PUBLIC_ENV=local
|
||||
ENV=local
|
||||
API_SERVER=http://localhost:6107/api/v1
|
||||
BACK_SERVER=http://localhost:6107
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
NEXT_PUBLIC_ENV=production
|
||||
ENV=production
|
||||
API_SERVER=http://127.0.0.1:6107/api/v1
|
||||
BACK_SERVER=http://127.0.0.1:6107
|
||||
|
||||
@@ -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*`,
|
||||
},
|
||||
];
|
||||
},
|
||||
|
||||
@@ -4,4 +4,5 @@ import { createEnv, env } from "@kri/common/config";
|
||||
export const serverEnv = createEnv({
|
||||
ENV: env.required("ENV", process.env.ENV),
|
||||
API_SERVER: env.required("API_SERVER", process.env.API_SERVER),
|
||||
BACK_SERVER: env.required("BACK_SERVER", process.env.BACK_SERVER),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user