Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Fix: 빌드 에러로 인한 500에러 수정 #43

Merged
merged 3 commits into from
Aug 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/lib/mocks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ async function initMocks() {
}
}

export default initMocks;
initMocks();

export {};
3 changes: 1 addition & 2 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ import {
} from "@tanstack/react-query";
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
import Layout from "components/common/layout";
import initMocks from "lib/mocks";
import type { AppProps } from "next/app";
import { useState } from "react";
import { resetStyles } from "styles/resetStyles";

if (process.env.NEXT_PUBLIC_API_MOCKING === "enabled") {
initMocks();
import("../lib/mocks");
}

export default function App({ Component, pageProps }: AppProps) {
Expand Down
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"compilerOptions": {
"target": "es5",
"types": ["jest", "node", "@testing-library/jest-dom"],
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
Expand Down