cancel
Showing results for 
Search instead for 
Did you mean: 

PWA Store Deployment on server

PWA Store Deployment on server

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 :

 

  1. SSL is already enabled on server
  2. PWA is running with PORT Number on server
  3. Able to set my custom URL with Port number on server
  4. 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.
  5. 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