actions-marketplace-validations/Inject redirect-origin Service Worker to static website
Redirect requests of origin to another given base URL.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Dec 13, 2022
- License
- MIT
Pinned Snippet
uses: actions-marketplace-validations/menci_service-worker-redirect-origin@dc8d338679c82c40ea5712c8471cd481df676323 # no releases — HEAD as of 2026-07-13tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| www-root | The directory containing the files of your static website. | yes | — |
| target-base-url | The target base url you want to redirect your origin requests to. Should end with a "/". | yes | — |
| http-404-page | The page to fetch when the redirected request responds with HTTP 404. By default fallback to origin. | — | "" |
| service-worker-filename | The script filename of service worker. Will be written to the `www-root` directory. By default `sw.js`. | — | sw.js |
Outputs
no outputs