Skip to content

Commit 6f84acc

Browse files
committed
frontend/environment: setup a production env with o1Labs nodes
1 parent b4376c2 commit 6f84acc

File tree

2 files changed

+50
-19
lines changed

2 files changed

+50
-19
lines changed

frontend/src/assets/environments/production.js

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,25 @@ export default {
88
globalConfig: {
99
features: {
1010
dashboard: [],
11-
'block-production': ['overview', 'won-slots'],
11+
nodes: ['overview', 'live', 'bootstrap'],
12+
state: ['actions'],
13+
snarks: ['scan-state', 'work-pool'],
14+
mempool: [],
15+
'block-production': ['won-slots'],
1216
},
1317
},
14-
sentry: {
15-
dsn: 'https://[email protected]/project-id',
16-
tracingOrigins: ['https://www.openmina.com'],
17-
},
1818
configs: [
1919
{
20-
name: 'Production Node',
21-
url: 'https://production-node.openmina.com',
20+
name: 'o1Labs Plain Node 1',
21+
url: 'http://mina-rust-plain-1.gcp.o1test.net/graphql',
22+
},
23+
{
24+
name: 'o1Labs Plain Node 2',
25+
url: 'http://mina-rust-plain-2.gcp.o1test.net/graphql',
26+
},
27+
{
28+
name: 'o1Labs Plain Node 3',
29+
url: 'http://mina-rust-plain-3.gcp.o1test.net/graphql',
2230
},
2331
],
2432
};
Lines changed: 35 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,40 @@
11
import { MinaEnv } from '@shared/types/core/environment/mina-env.type';
22

3-
const env = typeof window !== 'undefined' ? (window as any).env : {};
3+
// This environment provides build-time configuration for production
4+
// The actual runtime configuration gets loaded from /environments/env.js
45
export const environment: Readonly<MinaEnv> = {
56
production: true,
6-
configs: env.configs,
7-
globalConfig: env.globalConfig,
8-
hideNodeStats: env.hideNodeStats,
9-
identifier: env.identifier,
10-
hideToolbar: env.hideToolbar,
11-
canAddNodes: env.canAddNodes,
12-
showWebNodeLandingPage: env.showWebNodeLandingPage,
13-
showLeaderboard: env.showLeaderboard,
14-
hidePeersPill: env.hidePeersPill,
15-
hideTxPill: env.hideTxPill,
16-
sentry: env.sentry,
7+
identifier: 'Production',
8+
canAddNodes: false,
9+
hideNodeStats: false,
10+
hideToolbar: false,
11+
showWebNodeLandingPage: false,
12+
showLeaderboard: false,
13+
hidePeersPill: false,
14+
hideTxPill: false,
15+
globalConfig: {
16+
features: {
17+
dashboard: [],
18+
nodes: ['overview', 'live', 'bootstrap'],
19+
state: ['actions'],
20+
snarks: ['scan-state', 'work-pool'],
21+
mempool: [],
22+
'block-production': ['won-slots'],
23+
},
24+
},
25+
configs: [
26+
{
27+
name: 'o1Labs Plain Node 1',
28+
url: 'http://mina-rust-plain-1.gcp.o1test.net/graphql',
29+
},
30+
{
31+
name: 'o1Labs Plain Node 2',
32+
url: 'http://mina-rust-plain-2.gcp.o1test.net/graphql',
33+
},
34+
{
35+
name: 'o1Labs Plain Node 3',
36+
url: 'http://mina-rust-plain-3.gcp.o1test.net/graphql',
37+
},
38+
],
39+
sentry: undefined,
1740
};

0 commit comments

Comments
 (0)