Service Worker

PWA Service Worker Configuration

Service workers in the browser aloow the Progressive Web Application (PWA) functionality.

To activate a service worker in angular config:

angular.json
"serviceWorker": true;

The configuration of the service worker is in two files:

  1. ngsw.config.json

  2. manifest.webmanifest

Helmet configuraton options
CORS configruation options
circle-info

Angular Service workers can trigger asset loading issues in the browser e.g. fonts. Ensure your security policy in NestJS is configured correctly with Helmet & CORS in:

/nest-api/src/main.ts

Last updated