Hi
I would like to know how to deploy PWA store (With magento pwa-studio) on staging or any other server without passing the PORT number ?
I am working on currently PWA demo instance (Latest Magento version 2.3.1) - as PWA apps running with port number only - URl like - local.pwa.local:2823 (So URL with Port number)
What i want is to run PWA application on my server without port number,directly with the domain name Like - https://mypwa.com
As of now what i have tried as an prerequisite is as below :
- SSL is already enabled on server
- PWA is running with PORT Number on server
- Able to set my custom URL with Port number on server
- Using nginx reverse proxy i have redirected port number with 443 and store is loading with only domain as well - but issue here is assets are not loading and it gives error.
- It giving CORS policy error as well.
Can anybody have achieve the same ? is there any standard practice that we need to follow to deploy the pwa-studio ?
Looking forward to here your thoughts/suggestions on the same.
if issue solved,Click Kudos & Accept as Solution