Declarative PWA
nexa add pwa adds a real [pwa] block to nexa.toml — nexa build generates a real manifest.webmanifest and a real service worker, not an empty template.
Declaring the manifest
# nexa.toml
[pwa]
name = "My App"
themeColor = "#C8102E"
icon = "/icon-512.png"name, icon, colors and display mode — all real, without hand-writing a manifest.json.
Cache rules
[pwa.cache]
"/assets" = "cache-first"
"/api" = "network-first"cache-first, network-first, or stale-while-revalidate per route prefix, declared under [pwa.cache].