Skip to content

Commit

Permalink
refactor: hot fix (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
soyoung125 authored Nov 9, 2024
1 parent 2724e7c commit 591d443
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/api/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@

export const DOMAIN =
process.env.NODE_ENV === "production"
? "http://finthepen.gonetis.com" // 배포 시 실제로 연결할 서버로 변경하기 https://finthepen.site
? import.meta.env.VITE_LOCAL_DOMAIN
: "/local"; // 로컬 서버와 연결할 때 (단, MSW 동작 시 로컬 서버로 요청이 나가지 않고 mocking 당할 수 있음)
1 change: 1 addition & 0 deletions src/vite-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
interface ImportMeta {
env: {
VITE_LOCAL_MODE: string;
VITE_LOCAL_DOMAIN: string;
};
}
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default defineConfig({
server: {
proxy: {
"/local": {
target: "http://finthepen.gonetis.com",
target: "http://localhost:8080",
changeOrigin: true,
rewrite: (path) => path.replace(/^\/local/, ""),
},
Expand Down

0 comments on commit 591d443

Please sign in to comment.