PWA Configuration
This section explains how to configure the Progressive Web App (PWA) settings for your project.
Basic PWA Setup
Follow these steps:
- Open the following file:
docker → frontend → nuxt.config.jsFind the pwa section and update the
themeColor.Prepare a logo with the following specifications:
- Size: 192 × 192 px
- File name:
pwa-icon.png
- Place the logo inside:
docker → frontend → publicFor VPS Server
If you are deploying on a VPS server:
- Open the file:
docker → frontend → .env.prod- Update the value of:
APP_NAME- Go to the following folder:
docker → frontend- Build the project:
bash
npm run build- Start the server:
bash
npm run startFor cPanel Server
If you are deploying on a cPanel server:
- Open the file:
docker → frontend → .env.client- Update:
APP_NAME- Make sure:
API_BASE="/"
SSR=falseInstall Node.js (required before building).
Run the following commands locally:
bash
npm install
npm run generate- After generation, go to:
docker → frontend → .output → public- Copy all files from this folder and paste them into your hosting:
public_htmlYour PWA setup is now complete.