Skip to content

Commit

Permalink
refactor: allow only devnet in production
Browse files Browse the repository at this point in the history
  • Loading branch information
jsonDoge committed Dec 19, 2024
1 parent 46a98f4 commit 7f2145f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web/components/cluster/cluster-data-access.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,13 @@ const clusterAtom = atomWithStorage<Cluster>(
'solana-cluster',
defaultClusters[0],
);

const clustersAtom = atomWithStorage<Cluster[]>(
'solana-clusters',
defaultClusters,
// in production only allow devnet
process.env.NODE_ENV === 'production'
? [defaultClusters[0]]
: defaultClusters,
);

const activeClustersAtom = atom<Cluster[]>((get) => {
Expand Down

0 comments on commit 7f2145f

Please sign in to comment.