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

refactor: 프로덕션일 때 리트라이 3 #488

Merged
merged 2 commits into from
Mar 20, 2024
Merged
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
3 changes: 2 additions & 1 deletion src/pages/_app.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import usePageTrack from '~/hooks/event/usePageTrack';
import GlobalStyles from '~/styles/GlobalStyle';
import defaultTheme from '~/styles/theme';
import { type NextPageWithLayout } from '~/types/page';
import { isProd } from '~/utils/common';

ChannelTalk.loadScript();
ChannelTalk.boot({
Expand All @@ -40,7 +41,7 @@ export default function App({ Component, pageProps }: AppPropsWithLayout) {
new QueryClient({
defaultOptions: {
queries: {
retry: false,
retry: isProd(process.env.NODE_ENV) ? 3 : false,
refetchOnWindowFocus: false,
},
},
Expand Down
Loading