Skip to content

Commit

Permalink
fix: reloading issues in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
stephancill committed Jun 15, 2024
1 parent 37373a2 commit 60f164c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
NEXT_PUBLIC_HUB_REST_URL="https://nemes.farcaster.xyz:2281"

# (optional) Will only fetch a subset of messages if "development"
NEXT_PUBLIC_NODE_ENV="development"
# NEXT_PUBLIC_NODE_ENV="development"

# WalletConnect project ID for connecting wallets (https://cloud.walletconnect.com)
NEXT_PUBLIC_WALLETCONNECT_PROJECT_ID=
Expand Down
8 changes: 5 additions & 3 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,11 @@ export default function RootLayout({
<ConnectKitProvider>
<ConfigContextProvider>
<BackfillContextProvider>
<HashRouter>
<body className="p-2 md:p-10">{children}</body>
</HashRouter>
<body className="p-2 md:p-10">
{typeof window !== "undefined" ? (
<HashRouter>{children}</HashRouter>
) : null}
</body>
</BackfillContextProvider>
</ConfigContextProvider>
</ConnectKitProvider>
Expand Down

0 comments on commit 60f164c

Please sign in to comment.