Skip to content

Commit ccd60b8

Browse files
committed
Removed Fuzzing and Staging from frontend configuration options
1 parent ff9e2e5 commit ccd60b8

File tree

8 files changed

+9
-40
lines changed

8 files changed

+9
-40
lines changed

.github/scripts/docker/test-frontend-docker.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# Parameters:
66
# image - Docker image name/tag to test
7-
# environment - Frontend environment configuration (local, webnode, production, development, producer, fuzzing)
7+
# environment - Frontend environment configuration (local, webnode, production)
88
# port - Optional port to use (default: 8080)
99
#
1010
# Examples:
@@ -17,7 +17,7 @@ set -euo pipefail
1717
if [ $# -lt 2 ]; then
1818
echo "Usage: $0 <image> <environment> [port]"
1919
echo ""
20-
echo "Supported environments: local, webnode, production, fuzzing, staging"
20+
echo "Supported environments: local, webnode, production"
2121
echo ""
2222
echo "Examples:"
2323
echo " $0 o1labs/mina-rust-frontend:latest production"
@@ -31,7 +31,7 @@ PORT="${3:-8080}"
3131
CONTAINER_NAME="test-frontend-${ENVIRONMENT}-$$"
3232

3333
# Supported environments
34-
SUPPORTED_ENVS="local webnode production fuzzing staging"
34+
SUPPORTED_ENVS="local webnode production"
3535
if [[ ! " $SUPPORTED_ENVS " =~ \ $ENVIRONMENT\ ]]; then
3636
echo "❌ Unsupported environment: $ENVIRONMENT"
3737
echo "Supported environments: $SUPPORTED_ENVS"

.github/workflows/docker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ jobs:
228228
- push-frontend-image
229229
strategy:
230230
matrix:
231-
environment: [local, webnode, production, fuzzing]
231+
environment: [local, webnode, production]
232232
steps:
233233
- name: Git checkout
234234
uses: actions/checkout@v6

frontend/Makefile

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Frontend Makefile
22

33
# These are threaded from the outside env into build-webnode
4-
MINA_WEBNODE_SEED_URLS ?=
5-
MINA_WEBNODE_BOOTNODES ?=
4+
MINA_WEBNODE_SEED_URLS ?=
5+
MINA_WEBNODE_BOOTNODES ?=
66

77
.PHONY: help
88
help: ## Display this help message
@@ -15,12 +15,6 @@ help: ## Display this help message
1515
build: ## Build the frontend
1616
npx ng build
1717

18-
.PHONY: build-fuzzing
19-
build-fuzzing: ## Build the frontend with fuzzing configuration
20-
npx ng build --configuration fuzzing
21-
cp dist/frontend/browser/assets/environments/fuzzing.js \
22-
dist/frontend/browser/assets/environments/env.js
23-
2418
.PHONY: build-local
2519
build-local: ## Build the frontend with local configuration
2620
npx ng build --configuration local
@@ -49,12 +43,6 @@ build-webnode: ## Build the frontend with webnode configuration
4943
cp dist/frontend/browser/assets/environments/webnode.js \
5044
dist/frontend/browser/assets/environments/env.js
5145

52-
.PHONY: build-staging
53-
build-staging: ## Build the frontend with staging configuration
54-
npx ng build --configuration production
55-
cp dist/frontend/browser/assets/environments/staging.js \
56-
dist/frontend/browser/assets/environments/env.js
57-
5846
.PHONY: check-prettify
5947
check-prettify: ## Check if files are formatted with Prettier
6048
npx prettier --check 'src/**/*.{ts,js,html,scss,css,json}'
@@ -102,11 +90,6 @@ start-bundle: ## Serve the built bundle
10290
start-dev-mobile: ## Start the development server for mobile (accessible on network)
10391
npx ng serve --configuration development --host 0.0.0.0
10492

105-
.PHONY: start-fuzzing
106-
start-fuzzing: install-deps ## Start the fuzzing build and serve
107-
npx ng build --configuration fuzzing
108-
$(MAKE) start-bundle
109-
11093
.PHONY: start-local
11194
start-local: ## Start the development server with local configuration
11295
npx ng serve --configuration local

frontend/httpd.conf

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,6 @@ LoadModule rewrite_module modules/mod_rewrite.so
7777

7878
SSLProxyEngine On
7979

80-
<Location /openmina-node>
81-
ProxyPass http://openmina-node:3000
82-
ProxyPassReverse http://openmina-node:3000
83-
</Location>
84-
85-
<Location /mina/webrtc/signal>
86-
ProxyPass https://staging-devnet-openmina-bp-0.minaprotocol.network/mina/webrtc/signal
87-
ProxyPassReverse https://staging-devnet-openmina-bp-0.minaprotocol.network/mina/webrtc/signal
88-
</Location>
89-
9080
<IfModule unixd_module>
9181

9282
User www-data

frontend/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"version": "1.0.184",
44
"scripts": {
55
"build": "make build",
6-
"build:fuzzing": "make build-fuzzing",
76
"build:local": "make build-local",
87
"build:production:sentry": "make build-production-sentry",
98
"build:producer": "make build-producer",
@@ -18,7 +17,6 @@
1817
"start": "make start",
1918
"start:bundle": "make start-bundle",
2019
"start:dev:mobile": "make start-dev-mobile",
21-
"start:fuzzing": "make start-fuzzing",
2220
"start:local": "make start-local",
2321
"start:production": "make start-production",
2422
"start:webnode": "make start-webnode",

frontend/public/environments/webnode.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* This configuration is used for the staging-webnode environment.
2+
* This configuration is used for the webnode environment.
33
*/
44

55
export default {
@@ -14,7 +14,7 @@ export default {
1414
},
1515
sentry: {
1616
dsn: 'https://69aba72a6290383494290cf285ab13b3@o4508216158584832.ingest.de.sentry.io/4508216160616528',
17-
tracingOrigins: ['https://www.openmina.com'],
17+
tracingOrigins: [],
1818
},
1919
configs: [
2020
{

frontend/src/app/shared/types/core/environment/mina-env.type.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
* - Production: src/environments/environment.prod.ts
99
* - Local: src/environments/environment.local.ts
1010
* - WebNode: src/environments/environment.webnode-local.ts
11-
* - Producer: src/environments/environment.producer.ts
12-
* - Fuzzing: src/environments/environment.fuzzing.ts
1311
*
1412
* @see {@link https://github.com/o1-labs/mina-rust/tree/develop/frontend/src/environments}
1513
*/

frontend/src/assets/environments/webnode.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* This configuration is used for the staging-webnode environment.
2+
* This configuration is used for the webnode environment.
33
*
44
* NOTE: When modifying environment configuration files, update the documentation at:
55
* website/docs/developers/frontend/environment-configuration.mdx

0 commit comments

Comments
 (0)