menci/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
- Stale
- License
- None
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