PWA Configuration
Please follow these steps below to configure the PWA.
- Open docker > frontend > nuxt.config.js file. Find the "pwa" section and update the themeColor.
- Now it's time to prepare a logo. Please prepare 192 x 192 logo and name it pwa-icon.png. Paste the image in the docker > frontend > public folder.
For VPS server
It's time to build and deploy the script.
- Open docker > frontend > .env.prod file. Update the APP_NAME.
- Please run npm run build in the docker > frontend folder.
- Then run npm run start. to start the server
For shared server
Check the docker > frontend > .env.client file.
Update the APP_NAME.
Make sure the value of API_BASE is "/". And the value of SSR is false.
It's time to generate locally by running npm run generate.
It's required to install node js before build. We are using node 16.14.2. Please use that version in your local machine
Now go to docker > frontend > .output > public folder. And paste all the files of this folder in the root of your public_html folder.