Skip to content

Commit

Permalink
fix: fe crash due to referencing server env var NODE_ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongliang02 committed Jan 3, 2025
1 parent d2e4146 commit 4005753
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ const MyApp = ((props: AppPropsWithAuthAndLayout) => {
<Stack spacing={0} minH="$100vh">
<VersionWrapper />
<ChildWithLayout {...props} />
{['test', 'development'].includes(env.NODE_ENV) && (
<ReactQueryDevtools initialIsOpen={false} />
)}
<ReactQueryDevtools initialIsOpen={false} />
</Stack>
</Suspense>
</ErrorBoundary>
Expand Down

0 comments on commit 4005753

Please sign in to comment.