@@ -248,14 +248,19 @@ def get_config_frontend(
248
248
blockscout_service ,
249
249
nth_blockscout ,
250
250
):
251
+ hostName = ""
251
252
252
253
# Determine network name based on nth_blockscout
253
254
if nth_blockscout == 0 :
254
255
network_name = "Gwyneth L1"
256
+ hostName = "l1.explorer.gwyneth.xyz"
257
+
255
258
else :
256
259
# For L2, use L2A, L2B, etc. based on nth_blockscout
257
260
l2_suffix = chr (ord ('A' ) + nth_blockscout - 1 ) # Convert 1 to A, 2 to B, etc.
261
+ l2_suffix_lowercase = chr (ord ('a' ) + nth_blockscout - 1 )
258
262
network_name = "Gwyneth L2{}" .format (l2_suffix )
263
+ hostName = "l2{}.explorer.gwyneth.xyz" .format (l2_suffix_lowercase )
259
264
260
265
return ServiceConfig (
261
266
image = shared_utils .docker_cache_image_calc (
@@ -264,8 +269,11 @@ def get_config_frontend(
264
269
),
265
270
ports = FRONTEND_USED_PORTS ,
266
271
env_vars = {
267
- "NEXT_PUBLIC_API_PROTOCOL" : "http" ,
268
- "NEXT_PUBLIC_API_WEBSOCKET_PROTOCOL" : "ws" ,
272
+ "NEXT_PUBLIC_APP_PROTOCOL" : "https" ,
273
+ "NEXT_PUBLIC_APP_HOST" = hostName
274
+ "NEXT_PUBLIC_API_PROTOCOL" : "https" ,
275
+ "NEXT_PUBLIC_APP_HOST" : hostName ,
276
+ "NEXT_PUBLIC_API_WEBSOCKET_PROTOCOL" : "wss" ,
269
277
"NEXT_PUBLIC_NETWORK_NAME" : network_name ,
270
278
"NEXT_PUBLIC_NETWORK_ID" : network_params .network_id ,
271
279
"NEXT_PUBLIC_NETWORK_RPC_URL" : el_client_rpc_url ,
0 commit comments