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
f42ec931
Commit
f42ec931
authored
Jul 20, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert proxy changes
parent
797aca0d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
values.yaml.gotmpl
deploy/values/review/values.yaml.gotmpl
+1
-1
isNeedProxy.ts
lib/api/isNeedProxy.ts
+2
-6
No files found.
deploy/values/review/values.yaml.gotmpl
View file @
f42ec931
...
...
@@ -77,7 +77,7 @@ frontend:
NEXT_PUBLIC_FEATURED_NETWORKS:
_default: https://raw.githubusercontent.com/blockscout/frontend-configs/dev/configs/featured-networks/eth-goerli.json
NEXT_PUBLIC_API_HOST:
_default:
eth-goerli
.blockscout.com
_default:
blockscout-main.k8s-dev
.blockscout.com
NEXT_PUBLIC_STATS_API_HOST:
_default: https://stats-test.k8s-dev.blockscout.com/
NEXT_PUBLIC_VISUALIZE_API_HOST:
...
...
lib/api/isNeedProxy.ts
View file @
f42ec931
//
import appConfig from 'configs/app/config';
import
appConfig
from
'
configs/app/config
'
;
// FIXME
// I was not able to figure out how to send CORS with credentials from localhost
// unsuccessfully tried different ways, even custom local dev domain
// so for local development we have to use next.js api as proxy server
export
default
function
isNeedProxy
()
{
// eslint-disable-next-line no-restricted-properties
if
(
process
.
env
.
NEXT_PUBLIC_APP_INSTANCE
===
'
pw
'
)
{
return
false
;
}
return
true
;
return
appConfig
.
host
===
'
localhost
'
&&
appConfig
.
host
!==
appConfig
.
api
.
host
;
}
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