Frontend Deployment
To deploy the frontend first ensure that the backend admin and worker servers are up and running. This is required as during the frontend building, static pages are generated for which data is pulled from backend.
If you have a working frontend, be sure to backup your .env.local file, as it stores you working configuration.
To update frontend, first copy the content of package.json in the root of frontend folder fromt this repo Optionally you can do a clean install, by deleting the content of forntend folder and then downloading the repo. Here my-medusa-storefront is the name of your frontend folder.
Now install the latest node modules.
To run the development environment, use below command and the server will start
For deploying the production environment we need to first build the same using
Then to start the frontend production server, rin
The server should sucessfully start
Last updated