Skip to content

[bug] When i'm giving full path of model json url still it's appending the current domain with the full url #90

Description

@arunannamalai89

Describe the bug
In Package.json i removed the proxy configuration and updated my .env.devlopment file for model json with full AEM cloud url as
REACT_APP_PAGE_MODEL_PATH=https://publish-p76602-e663929.adobeaemcloud.com/content/wknd-spa-react/us/en.model.json.
When i'm running my dev environment in my local or in any other cloud, model url is hitting wrongly by concatenating the current domain url with the url which is given in the .env like this ** http://localhost:3000/https://publish-p76602-e663929.adobeaemcloud.com/content/wknd-spa-react/us/en.model.json**

Package version
Latest Package version: 1.4.4

To Reproduce
Steps to reproduce the behavior:

  1. Setup a local environment same like prod environment without proxy in package.json. Because i'm trying to run the same local setup in my cloud machine. In that case, Proxy wont't works there..

Expected behavior
My expectation if , If we give full model json url path in .env file. It should pick that URL in the build and same have to hit while running web in local/in any cloud machine.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions