feat: 공통 기능 rewrites 로직 작성
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
export { GroupApi } from "./api/group-api";
|
||||
export {
|
||||
type GroupParams,
|
||||
type Group,
|
||||
type GroupFormData,
|
||||
} from "./model/types";
|
||||
@@ -1,29 +0,0 @@
|
||||
export interface Group {
|
||||
groupId: string;
|
||||
groupNm: string;
|
||||
groupSeCd: string;
|
||||
groupExpln: string;
|
||||
delYn: string;
|
||||
regDt: string;
|
||||
rgtr: string;
|
||||
mdfcnDt: string | null;
|
||||
mdfr: string | null;
|
||||
authrtId: string;
|
||||
siteId: string | null;
|
||||
}
|
||||
|
||||
export interface GroupParams {
|
||||
groupNm?: string;
|
||||
groupSeCd?: string;
|
||||
siteId?: string;
|
||||
}
|
||||
|
||||
export interface GroupFormData {
|
||||
groupId: string;
|
||||
groupNm: string;
|
||||
groupSeCd: string;
|
||||
groupExpln: string;
|
||||
delYn: string;
|
||||
authrtId: string;
|
||||
siteId: string;
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"name": "cs",
|
||||
"name": "feature",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "next dev",
|
||||
"dev": "next dev -p 13000",
|
||||
"build": "next build",
|
||||
"start": "next start",
|
||||
"start": "next start -p 13000",
|
||||
"lint": "next lint"
|
||||
},
|
||||
"dependencies": {
|
||||
|
Before Width: | Height: | Size: 132 KiB After Width: | Height: | Size: 132 KiB |
+1
-1
@@ -1,4 +1,4 @@
|
||||
export const PORT = process.env.NEXT_PUBLIC_PORT || "3001";
|
||||
export const PORT = process.env.NEXT_PUBLIC_PORT || "3000";
|
||||
export const PROXY_HOST =
|
||||
process.env.NEXT_PUBLIC_PROXY_HOST || `http://localhost:${PORT}`;
|
||||
|
||||
+25
-9
@@ -1,16 +1,32 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
// const subDomain = process.env.NEXT_PUBLIC_SUB_DOMAIN;
|
||||
const subDomain =
|
||||
process.env.NEXT_PUBLIC_SUB_DOMAIN || "http://localhost:13000";
|
||||
|
||||
const nextConfig: NextConfig = {
|
||||
// async rewrites() {
|
||||
// return [
|
||||
// {
|
||||
// source: "/board/:path*",
|
||||
// destination: `${subDomain}/board/:path*`,
|
||||
// },
|
||||
// ];
|
||||
// },
|
||||
async rewrites() {
|
||||
return {
|
||||
beforeFiles: [
|
||||
{
|
||||
source: "/_next/static/:path*",
|
||||
destination: `${subDomain}/_next/static/:path*`,
|
||||
has: [
|
||||
{
|
||||
type: "header",
|
||||
key: "x-rewrite-me",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
afterFiles: [
|
||||
{
|
||||
source: "/board/:path*",
|
||||
destination: `${subDomain}/board/:path*`,
|
||||
},
|
||||
],
|
||||
fallback: [],
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
|
||||
Reference in New Issue
Block a user