Skip to content

Commit

Permalink
fix: keep testnet on preview
Browse files Browse the repository at this point in the history
  • Loading branch information
chef-eric committed Feb 13, 2025
1 parent c98bc49 commit 09a1552
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/ton/src/ton/atom/tonStateAtom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import { atomWithProxy } from 'jotai-valtio'
import { proxy } from 'valtio'

function detectNetwork() {
const isProd = process.env.NODE_ENV === 'production'
const guess = isProd ? TonNetworks.Mainnet : TonNetworks.Testnet
// const isProd = process.env.NODE_ENV === 'production'
// const guess = isProd ? TonNetworks.Mainnet : TonNetworks.Testnet
const guess = TonNetworks.Testnet
if (typeof window === 'undefined') {
return guess
}
Expand Down

0 comments on commit 09a1552

Please sign in to comment.