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
bdeb27d9
Commit
bdeb27d9
authored
Oct 04, 2024
by
Max Alekseenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add new env to docs
parent
4f0be5a4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
0 deletions
+12
-0
schema.ts
deploy/tools/envs-validator/schema.ts
+1
-0
.env.base
deploy/tools/envs-validator/test/.env.base
+1
-0
ENVS.md
docs/ENVS.md
+9
-0
app.ts
nextjs/csp/policies/app.ts
+1
-0
No files found.
deploy/tools/envs-validator/schema.ts
View file @
bdeb27d9
...
...
@@ -810,6 +810,7 @@ const schema = yup
NEXT_PUBLIC_GOOGLE_ANALYTICS_PROPERTY_ID
:
yup
.
string
(),
NEXT_PUBLIC_MIXPANEL_PROJECT_TOKEN
:
yup
.
string
(),
NEXT_PUBLIC_GROWTH_BOOK_CLIENT_KEY
:
yup
.
string
(),
NEXT_PUBLIC_REWARDS_SERVICE_API_HOST
:
yup
.
string
().
test
(
urlTest
),
// Misc
NEXT_PUBLIC_USE_NEXT_JS_PROXY
:
yup
.
boolean
(),
...
...
deploy/tools/envs-validator/test/.env.base
View file @
bdeb27d9
...
...
@@ -86,3 +86,4 @@ NEXT_PUBLIC_DEFI_DROPDOWN_ITEMS=[{'text':'Swap','icon':'swap','dappId':'uniswap'
NEXT_PUBLIC_MULTICHAIN_BALANCE_PROVIDER_CONFIG={'name': 'zerion', 'url_template': 'https://app.zerion.io/{address}/overview', 'logo': 'https://raw.githubusercontent.com/blockscout/frontend-configs/main/configs/marketplace-logos/zerion.svg'}
NEXT_PUBLIC_GAS_REFUEL_PROVIDER_CONFIG={'name': 'Need gas?', 'dapp_id': 'smol-refuel', 'url_template': 'https://smolrefuel.com/?outboundChain={chainId}&partner=blockscout&utm_source=blockscout&utm_medium=address&disableBridges=true', 'logo': 'https://blockscout-content.s3.amazonaws.com/smolrefuel-logo-action-button.png'}
NEXT_PUBLIC_SAVE_ON_GAS_ENABLED=true
NEXT_PUBLIC_REWARDS_SERVICE_API_HOST=https://example.com
docs/ENVS.md
View file @
bdeb27d9
...
...
@@ -63,6 +63,7 @@ Please be aware that all environment variables prefixed with `NEXT_PUBLIC_` will
-
[
Multichain balance button
](
ENVS.md#multichain-balance-button
)
-
[
Get gas button
](
ENVS.md#get-gas-button
)
-
[
Save on gas with GasHawk
](
ENVS.md#save-on-gas-with-gashawk
)
-
[
Rewards service API
](
ENVS.md#rewards-service-api
)
-
[
3rd party services configuration
](
ENVS.md#external-services-configuration
)
...
...
@@ -767,6 +768,14 @@ The feature enables a "Save with GasHawk" button next to the "Gas used" value on
### Rewards service API
This feature enables Blockscout Merits program.
| Variable | Type| Description | Compulsoriness | Default value | Example value | Version |
| --- | --- | --- | --- | --- | --- | --- |
| NEXT_PUBLIC_REWARDS_SERVICE_API_HOST |
`string`
| API url | - | - |
`https://example.com`
| v1.36.0+ |
## External services configuration
### Google ReCaptcha
...
...
nextjs/csp/policies/app.ts
View file @
bdeb27d9
...
...
@@ -67,6 +67,7 @@ export function app(): CspDev.DirectiveDescriptor {
getFeaturePayload
(
config
.
features
.
addressVerification
)?.
api
.
endpoint
,
getFeaturePayload
(
config
.
features
.
nameService
)?.
api
.
endpoint
,
getFeaturePayload
(
config
.
features
.
addressMetadata
)?.
api
.
endpoint
,
getFeaturePayload
(
config
.
features
.
rewards
)?.
api
.
endpoint
,
// chain RPC server
config
.
chain
.
rpcUrl
,
...
...
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