Skip to content

Commit

Permalink
Merge pull request #6 from haeyonghahn/feature/#1
Browse files Browse the repository at this point in the history
Feat: Mock API 추가
  • Loading branch information
haeyonghahn committed May 20, 2024
2 parents 0a7f441 + 3c29df1 commit e5741c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion src/api/const.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export const BASE_URL = import.meta.env.VITE_BASE_URL;
export const KAKAO_CLIENT_ID = import.meta.env.VITE_KAKAO_CLIENT_ID;
export const KAKAO_REDIRECT_URI = import.meta.env.VITE_KAKAO_REDIRECT_URI;
export const NODE_ENV = import.meta.env.VITE_NODE_ENV;
3 changes: 1 addition & 2 deletions src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import ReactDOM from "react-dom/client";
import App from "./App.tsx";
import { RecoilRoot } from "recoil";
import { NODE_ENV } from "./api/const.ts";

if (NODE_ENV === "development") {
if ("development" === "development") {
import("./mocks/browser").then(({ worker }) => {
worker.start();
});
Expand Down

0 comments on commit e5741c9

Please sign in to comment.