Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
db17f615
Commit
db17f615
authored
Aug 01, 2023
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
b763fa4b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
6 deletions
+15
-6
.env.template
.env.template
+1
-1
config.ts
configs/app/config.ts
+1
-1
ENVS.md
docs/ENVS.md
+1
-1
envs.ts
types/envs.ts
+12
-3
No files found.
.env.template
View file @
db17f615
...
...
@@ -77,4 +77,4 @@ NEXT_PUBLIC_L2_WITHDRAWAL_URL=__PLACEHOLDER_FOR_NEXT_PUBLIC_L2_WITHDRAWAL_URL__
# beacon chain config
NEXT_PUBLIC_HAS_BEACON_CHAIN=__PLACEHOLDER_FOR_NEXT_PUBLIC_HAS_BEACON_CHAIN__
NEXT_PUBLIC_BEACON_NETWORK_CURRENCY_SYMBOL=__PLACEHOLDER_FOR_NEXT_PUBLIC_BEACON_NETWORK_CURRENCY_SYMBOL__
\ No newline at end of file
NEXT_PUBLIC_BEACON_CHAIN_CURRENCY_SYMBOL=__PLACEHOLDER_FOR_NEXT_PUBLIC_BEACON_CHAIN_CURRENCY_SYMBOL__
configs/app/config.ts
View file @
db17f615
...
...
@@ -161,7 +161,7 @@ const config = Object.freeze({
},
beaconChain
:
{
hasBeaconChain
:
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_HAS_BEACON_CHAIN
)
===
'
true
'
,
currencySymbol
:
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_BEACON_
NETWORK
_CURRENCY_SYMBOL
)
||
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL
),
currencySymbol
:
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_BEACON_
CHAIN
_CURRENCY_SYMBOL
)
||
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL
),
},
statsApi
:
{
endpoint
:
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_STATS_API_HOST
),
...
...
docs/ENVS.md
View file @
db17f615
...
...
@@ -170,4 +170,4 @@ In order to enable "My Account" feature you have to configure following set of v
| Variable | Type| Description | Is required | Default value | Example value |
| --- | --- | --- | --- | --- | --- |
| NEXT_PUBLIC_HAS_BEACON_CHAIN |
`boolean`
| Set to true for networks with the beacon chain | - | - |
`true`
|
| NEXT_PUBLIC_BEACON_
NETWORK
_CURRENCY_SYMBOL |
`string`
| Beacon network currency symbol | - | NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL |
`ETH`
|
| NEXT_PUBLIC_BEACON_
CHAIN
_CURRENCY_SYMBOL |
`string`
| Beacon network currency symbol | - | NEXT_PUBLIC_NETWORK_CURRENCY_SYMBOL |
`ETH`
|
types/envs.ts
View file @
db17f615
...
...
@@ -16,8 +16,6 @@ export type NextPublicEnvs = {
NEXT_PUBLIC_NETWORK_EXPLORERS
?:
string
;
NEXT_PUBLIC_NETWORK_VERIFICATION_TYPE
?:
'
validation
'
|
'
mining
'
;
NEXT_PUBLIC_IS_TESTNET
?:
'
true
'
|
''
;
NEXT_PUBLIC_HAS_BEACON_CHAIN
?:
'
true
'
|
''
;
NEXT_PUBLIC_BEACON_NETWORK_CURRENCY_SYMBOL
?:
string
;
// UI config
NEXT_PUBLIC_FEATURED_NETWORKS
?:
string
;
...
...
@@ -74,7 +72,8 @@ export type NextPublicEnvs = {
}
&
NextPublicEnvsAccount
&
NextPublicEnvsMarketplace
&
NextPublicEnvsRollup
;
&
NextPublicEnvsRollup
&
NextPublicEnvsBeacon
;
type
NextPublicEnvsAccount
=
{
...
...
@@ -111,3 +110,13 @@ type NextPublicEnvsRollup =
NEXT_PUBLIC_L1_BASE_URL
?:
undefined
;
NEXT_PUBLIC_L2_WITHDRAWAL_URL
?:
undefined
;
}
type
NextPublicEnvsBeacon
=
{
NEXT_PUBLIC_HAS_BEACON_CHAIN
:
'
true
'
;
NEXT_PUBLIC_BEACON_CHAIN_CURRENCY_SYMBOL
?:
string
;
}
|
{
NEXT_PUBLIC_HAS_BEACON_CHAIN
?:
undefined
;
NEXT_PUBLIC_BEACON_CHAIN_CURRENCY_SYMBOL
?:
undefined
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment