PWA Tutorial: Turn Your Website Into a Progressive Web App
An existing website becomes an installable progressive web app with a JSON web app manifest linked from the base HTML template, an offline.html fallback, and a service worker served from the root of the manifest scope. The example service worker precaches key routes on install. On fetch it tries the network first, caches every response, and falls back to the cache or offline.html when the request fails. PWAs must be served over HTTPS and are confined to their URL scope. The walkthrough covers deploying a static PWA with Heroku's static buildpack and installing the app on iOS Safari and Android Chrome.
Related posts
- Web Push for Web Apps on iOS and iPadOS
WebKit mediumAdeptiOS and iPadOS 16.4 beta 1 adds standards-based Web Push for Home Screen web apps, using the Push API, Notifications API and Service Workers over Apple Push Notification service, with no Apple Developer Program membership required (allow *.push.apple.com). Permission must be requested in response to direct user interaction, and notifications integrate with Focus, which syncs across devices via the newly supported manifest `id` combined with the user-chosen app name. The release also adds the Badging API, lets third-party browsers offer Add to Home Screen through UIActivityViewController with a WKWebView, opens Home Screen bookmarks in the default browser, and generates monogram fallback icons. Sites already using feature detection for Web Push on Safari 16.1 for macOS should work unchanged.
- Meet Declarative Web Push
WebKit mediumAdeptDeclarative Web Push lets sites subscribe via window.pushManager and send a standardized JSON payload (keyed by "web_push": 8030 with a required title and navigate URL) that the browser displays as a notification without any service worker JavaScript. An installed service worker can optionally replace the proposed notification, and the declarative payload serves as a fallback if it fails, so WebKit no longer revokes subscriptions for missed notifications. Subscriptions also survive ITP deleting service worker registrations. Rewriting existing service worker PushEvent handlers to render the same JSON keeps messages backwards compatible with browsers that lack support. It is available in iOS/iPadOS 18.4 and the macOS 15.5 beta.
- Front-End Web Deep Dive: Runtime Config
Heroku Engineering mediumAdeptHeroku's Front-End Web Cloud Native Buildpack provides runtime configuration for static web apps by writing PUBLIC_WEB_-prefixed environment variables into the HTML <head> as data-* attributes each time the bundled static server starts. JavaScript reads them via document.head.dataset, so values like API URLs can change between staging and production without a rebuild. Unlike the older create-react-app-buildpack, which rewrote the JS bundle, this approach is framework-agnostic and does not conflict with CSP or Subresource Integrity. Existing apps may need refactoring so config values are read at runtime rather than captured at build time.
- ...It Works Fine Locally
Render mediumAdept
A deployment checklist for apps that run locally but fail in the cloud, drawn from Render support cases. Pin language, package manager and dependency versions, and keep secrets and service URLs in environment variables. Add a health check endpoint that touches critical dependencies, build with production dependency groups and precompile assets rather than shipping dev servers, and bind to 0.0.0.0 on $PORT with worker counts tuned to the plan. Treat instance filesystems as ephemeral and use disks, databases or object storage for persistent files, and configure allowed hosts, canonical redirects and HTTPS asset URLs for custom domains.
- Light Up Your Builds with Render Webhooks
Render mediumAdept
A Raspberry Pi Pico W–driven 32×32 LED panel lights up with distinct animations whenever Render webhook events fire for build_started, build_ended, deploy_started and deploy_ended. Because Render requires HTTPS webhook endpoints and the Pico W only speaks plain HTTP, a small proxy service on Render receives the webhook and forwards the JSON payload to the device via a router port forward. Render expects a 2xx response within about 15 seconds and retries failed deliveries automatically. Setup steps cover the dashboard configuration and the delivery history view, and suggested next steps include signature validation on the proxy.