We have a Portal hosted Event Management Portal (not a self hosted).
Then, we downloaded the last version of website (October 2020) from this link (https://docs.microsoft.com/en-us/dynamics365/marketing/developer/event-management-web-application#download-sample-event-website) and, without any customizations done, we were capable of serving that portal locally from localhost by using Node command prompt.
Before apply any changes, we wanted to know if we were able of deploy that portal by using the ps1 script provided with the source code, which is called DeployToDynamics365Instance.ps1. When running this, the console log repeated for each file this sequence:
Updating file 1058.json
Updating webfile:
1058.json
Deleting annotations for the webfile, found 1 annotations
Updated file 1058.json
After running that however, if we let the environment.ts file like we have it when runnig in local host, we see a 404 error, because the requests are duplicating our site domain, like in this example:
Http failure response for https://ourSiteDomain/ourSiteDomainAgain/api/events/published/?ts=1604744790116: 404 Not Found
However, we assume that environment.ts has no implications in the event website running on internet.
How and where can we change the configuration so our siteDomain were not replicated in the http request?
What are we doing wrong?