Skip to content

Commit 25b031b

Browse files
committed
Web node local startup
1 parent aad3df8 commit 25b031b

File tree

4 files changed

+77
-3
lines changed

4 files changed

+77
-3
lines changed

frontend/angular.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,15 @@
9090
],
9191
"outputHashing": "all"
9292
},
93+
"webnodelocal": {
94+
"fileReplacements": [
95+
{
96+
"replace": "src/environments/environment.ts",
97+
"with": "src/environments/environment.webnodelocal.ts"
98+
}
99+
],
100+
"outputHashing": "all"
101+
},
93102
"fuzzing": {
94103
"fileReplacements": [
95104
{
@@ -120,6 +129,9 @@
120129
"development": {
121130
"browserTarget": "frontend:build:development"
122131
},
132+
"webnodelocal": {
133+
"browserTarget": "frontend:build:webnodelocal"
134+
},
123135
"local": {
124136
"browserTarget": "frontend:build:local"
125137
},

frontend/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"install:deps": "npm install",
66
"start": "npm install && ng serve --configuration local --open",
77
"start:dev": "ng serve --configuration development",
8+
"start:webnode": "ng serve --configuration webnodelocal",
89
"start:dev:mobile": "ng serve --configuration development --host 0.0.0.0",
910
"start:fuzzing": "npm run install:deps && ng build --configuration fuzzing && npm run start:bundle",
1011
"build": "ng build",
@@ -91,4 +92,4 @@
9192
"webpack": "^5.88.2",
9293
"webpack-bundle-analyzer": "^4.9.0"
9394
}
94-
}
95+
}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
import { MinaEnv } from '@shared/types/core/environment/mina-env.type';
2+
3+
export const environment: Readonly<MinaEnv> = {
4+
production: true,
5+
identifier: 'Web Node FE',
6+
canAddNodes: true,
7+
showWebNodeLandingPage: false,
8+
showLeaderboard: false,
9+
hidePeersPill: true,
10+
hideTxPill: true,
11+
globalConfig: {
12+
features: {
13+
dashboard: [],
14+
// nodes: ['overview', 'live', 'bootstrap'],
15+
state: ['actions'],
16+
// network: ['messages', 'connections', 'blocks', 'topology', 'node-dht', 'graph-overview', 'bootstrap-stats'],
17+
// snarks: ['scan-state', 'work-pool'],
18+
// resources: ['memory'],
19+
'block-production': ['won-slots'],
20+
mempool: [],
21+
benchmarks: ['wallets'],
22+
// fuzzing: [],
23+
},
24+
firebase: {
25+
apiKey: 'AIzaSyBZzFsHjIbQVbBP0N-KkUsEvHRVU_wwd7g',
26+
authDomain: 'webnode-gtm-test.firebaseapp.com',
27+
projectId: 'webnode-gtm-test',
28+
storageBucket: 'webnode-gtm-test.firebasestorage.app',
29+
messagingSenderId: '1016673359357',
30+
appId: '1:1016673359357:web:bbd2cbf3f031756aec7594',
31+
measurementId: 'G-ENDBL923XT',
32+
},
33+
heartbeats: true,
34+
graphQL: 'https://adonagy.com/graphql',
35+
// graphQL: 'https://api.minascan.io/node/devnet/v1/graphql',
36+
// graphQL: 'http://65.109.105.40:5000/graphql',
37+
},
38+
configs: [
39+
// {
40+
// name: 'staging-devnet-bp-0',
41+
// url: 'https://staging-devnet-openmina-bp-0.minaprotocol.network',
42+
// },
43+
// {
44+
// name: 'staging-devnet-bp-1',
45+
// url: 'https://staging-devnet-openmina-bp-1.minaprotocol.network',
46+
// },
47+
// {
48+
// name: 'staging-devnet-bp-2',
49+
// url: 'https://staging-devnet-openmina-bp-2.minaprotocol.network',
50+
// },
51+
// {
52+
// name: 'staging-devnet-bp-3',
53+
// url: 'https://staging-devnet-openmina-bp-3.minaprotocol.network',
54+
// },
55+
{
56+
name: 'Web Node',
57+
isWebNode: true,
58+
},
59+
],
60+
};
61+

0 commit comments

Comments
 (0)