menci/Inject redirect-origin Service Worker to static website

Redirect requests of origin to another given base URL.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
www-rootThe directory containing the files of your static website.yes
target-base-urlThe target base url you want to redirect your origin requests to. Should end with a "/".yes
http-404-pageThe page to fetch when the redirected request responds with HTTP 404. By default fallback to origin.""
service-worker-filenameThe script filename of service worker. Will be written to the `www-root` directory. By default `sw.js`.sw.js

no outputs