actions-marketplace-validations/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
Stalelast commit Dec 13, 2022
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: actions-marketplace-validations/menci_service-worker-redirect-origin@dc8d338679c82c40ea5712c8471cd481df676323 # no releases — HEAD as of 2026-07-13

tags can be moved; commit SHAs can't. why a SHA?

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