adobe / aem-spa-page-model-manager

Interface between Adobe Experience Manager and Single Page Application framework.
Apache License 2.0
35 stars 24 forks source link

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

Open arunannamalai89 opened 1 year ago

arunannamalai89 commented 1 year ago

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.