Skip to content

Env variables that link to website URL should not end with "/". Ensure the "/" is removed in the code, if any. #1158

@levalleux-ludo

Description

@levalleux-ludo

when setting
REACT_APP_WIDGETS_URL=https://widgets.bosonprotocol.io/
instead of
REACT_APP_WIDGETS_URL=https://widgets.bosonprotocol.io
the connection with widget is not working well.

Make the necessary changes in the code so that the "/" is removed at the end of the variable value, in case it exists
This has to be done with the following env vars:

  • REACT_APP_WIDGETS_URL
  • REACT_APP_DAPP_VIEW_MODE
  • REACT_APP_DR_CENTER_VIEW_MODE

This could be done in the file 'src\lib\config.ts', when the env var values are read and copied into the CONFIG object

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions