All Collections
PWA Questions
Managing multiple environments, apps, and domains with Progressier
Managing multiple environments, apps, and domains with Progressier

Progressier accommodates various environments and domains, making it easy to manage your app in staging, development, and production.

Kevin Basset avatar
Written by Kevin Basset
Updated over a week ago

Under the hood, Progressier uses relative URLs for almost everything. This way, your integration can run on multiple domains and environments simultaneously (including staging and localhost).

Managing domains

Go to Settings > My App to specify your Primary domain and Secondary domains.

Primary domain

This is the domain displayed throughout the dashboard. Generally, you'll want to use your production domain as Primary domain.

Pro tip: to test your integration on a staging domain first, enter your staging domain as Primary domain, and change it once you're ready to push Progressier to production.

Your primary domain is also used as follows:

Secondary domains

These are the other domains on which your integration is running. You can add development domains (e.g. localhost:5000 or 127.0.0.1:5000), subdomains (e.g. subdomain1.example.com and subdomain2.example.com), wildcard domains (e.g. *.example.com) or any arbitrary combination of domains (e.g. example.com and test.com).

Example

Below are the settings for my own app coronavirus.app. My app is also available at crnvr.us (using a mirror URL was helpful to solve this problem). The script, manifest, and, service worker are the exact same for both domains.

Additionally, during development, I needed to run the app locally, so I also added two development domains (127.0.0.1:5000 and localhost:5000) as Secondary domains.

Did this answer your question?