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
07522a76
Commit
07522a76
authored
Feb 17, 2023
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
13258afe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
config.ts
configs/app/config.ts
+4
-2
.env.goerli.l2test
configs/envs/.env.goerli.l2test
+1
-1
package.json
package.json
+1
-1
No files found.
configs/app/config.ts
View file @
07522a76
...
@@ -94,8 +94,6 @@ const config = Object.freeze({
...
@@ -94,8 +94,6 @@ const config = Object.freeze({
baseUrl
,
baseUrl
,
authUrl
,
authUrl
,
logoutUrl
,
logoutUrl
,
isL2Network
:
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_IS_L2_NETWORK
)
===
'
true
'
,
l1BaseUrl
:
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_L1_BASE_URL
),
ad
:
{
ad
:
{
domainWithAd
:
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_AD_DOMAIN_WITH_AD
)
||
'
blockscout.com
'
,
domainWithAd
:
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_AD_DOMAIN_WITH_AD
)
||
'
blockscout.com
'
,
adButlerOn
:
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_AD_ADBUTLER_ON
)
===
'
true
'
,
adButlerOn
:
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_AD_ADBUTLER_ON
)
===
'
true
'
,
...
@@ -106,6 +104,10 @@ const config = Object.freeze({
...
@@ -106,6 +104,10 @@ const config = Object.freeze({
socket
:
apiHost
?
`wss://
${
apiHost
}
`
:
'
wss://blockscout.com
'
,
socket
:
apiHost
?
`wss://
${
apiHost
}
`
:
'
wss://blockscout.com
'
,
basePath
:
stripTrailingSlash
(
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_API_BASE_PATH
)
||
''
),
basePath
:
stripTrailingSlash
(
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_API_BASE_PATH
)
||
''
),
},
},
l2
:
{
isL2Network
:
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_IS_L2_NETWORK
)
===
'
true
'
,
l1BaseUrl
:
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_L1_BASE_URL
),
},
statsApi
:
{
statsApi
:
{
endpoint
:
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_STATS_API_HOST
),
endpoint
:
getEnvValue
(
process
.
env
.
NEXT_PUBLIC_STATS_API_HOST
),
basePath
:
''
,
basePath
:
''
,
...
...
configs/envs/.env.goerli.l2
→
configs/envs/.env.goerli.l2
test
View file @
07522a76
...
@@ -26,4 +26,4 @@ NEXT_PUBLIC_STATS_API_HOST=https://stats-test.aws-k8s.blockscout.com
...
@@ -26,4 +26,4 @@ NEXT_PUBLIC_STATS_API_HOST=https://stats-test.aws-k8s.blockscout.com
# l2 config
# l2 config
NEXT_PUBLIC_IS_L2_NETWORK=true
NEXT_PUBLIC_IS_L2_NETWORK=true
NEXT_PUBLIC_L1_BASE_URL=
'https://eth-goerli.blockscout.com/'
NEXT_PUBLIC_L1_BASE_URL=
https://eth-goerli.blockscout.com/
package.json
View file @
07522a76
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
"dev:local"
:
"./node_modules/.bin/dotenv -e ./configs/envs/.env.localhost -e ./configs/envs/.env.secrets next dev | ./node_modules/.bin/pino-pretty"
,
"dev:local"
:
"./node_modules/.bin/dotenv -e ./configs/envs/.env.localhost -e ./configs/envs/.env.secrets next dev | ./node_modules/.bin/pino-pretty"
,
"dev:poa_core"
:
"./node_modules/.bin/dotenv -e ./configs/envs/.env.poa_core -e ./configs/envs/.env.common -e ./configs/envs/.env.secrets next dev | ./node_modules/.bin/pino-pretty"
,
"dev:poa_core"
:
"./node_modules/.bin/dotenv -e ./configs/envs/.env.poa_core -e ./configs/envs/.env.common -e ./configs/envs/.env.secrets next dev | ./node_modules/.bin/pino-pretty"
,
"dev:goerli"
:
"./node_modules/.bin/dotenv -e ./configs/envs/.env.goerli -e ./configs/envs/.env.common -e ./configs/envs/.env.secrets next dev | ./node_modules/.bin/pino-pretty"
,
"dev:goerli"
:
"./node_modules/.bin/dotenv -e ./configs/envs/.env.goerli -e ./configs/envs/.env.common -e ./configs/envs/.env.secrets next dev | ./node_modules/.bin/pino-pretty"
,
"dev:goerli:l2
"
:
"./node_modules/.bin/dotenv -e ./configs/envs/.env.goerli.l2
-e ./configs/envs/.env.common -e ./configs/envs/.env.secrets next dev | ./node_modules/.bin/pino-pretty"
,
"dev:goerli:l2
test"
:
"./node_modules/.bin/dotenv -e ./configs/envs/.env.goerli.l2test
-e ./configs/envs/.env.common -e ./configs/envs/.env.secrets next dev | ./node_modules/.bin/pino-pretty"
,
"build"
:
"next build"
,
"build"
:
"next build"
,
"build:docker"
:
"docker build --build-arg GIT_COMMIT_SHA=$(git rev-parse HEAD) -t blockscout ./"
,
"build:docker"
:
"docker build --build-arg GIT_COMMIT_SHA=$(git rev-parse HEAD) -t blockscout ./"
,
"start"
:
"next start"
,
"start"
:
"next start"
,
...
...
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