You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactors routing code to greatly simplify architecture.
1. Document the loading process
1. Display server error/fetch error/origin isolation warning inline
1. Encode query parameters in redirect param
1. Make styling consistent across all pages
1. Add load/about/settings navigation above the fold to reduce on-screen clutter
1. Fix input form error so the 'load content' button shows
1. Allow hard refresh with query params
1. Pre-fill download input with CID/path from current page if available
1. Remove "first-hit" scaffolding as it covers up a query string parsing bug
1. Remove unused code and components
1. Add `waitUntil` to `page.goto` in playwright tests to fix race conditions where we expect a 200 status but it can still be redirecting
1. Disable Firefox bounce tracking protection during tests as it deletes the service worker when triggered
*`http://localhost:8345` - The service worker gateway front-end served directly with esbuild.
100
99
101
-
For the above URLs with reverse-proxy, the reverse proxy ensures subdomain support. This ensures you can access URLs like `https://<hash>.ipfs.localhost:<port>/` and `https://<dnslink>.ipns.localhost:<port>/`
100
+
For the above URLs with reverse-proxy, the reverse proxy ensures subdomain
101
+
support. This ensures you can access URLs like `https://<hash>.ipfs.localhost:<port>/`
102
+
and `https://<dnslink>.ipns.localhost:<port>/`
102
103
103
-
As you type in a content path, you will be redirected to appropriate URL (typically that means [subdomain style resolution](https://docs.ipfs.tech/how-to/gateway-best-practices/#use-subdomain-gateway-resolution-for-origin-isolation)).
104
+
As you type in a content path, you will be redirected to appropriate URL
105
+
(typically that means [subdomain style resolution](https://docs.ipfs.tech/how-to/gateway-best-practices/#use-subdomain-gateway-resolution-for-origin-isolation)).
104
106
105
107
For more information about local development setup, see [/docs/DEVELOPMENT.md](/docs/DEVELOPMENT.md).
106
108
107
109
### Try hosted instance
108
110
109
-
We provide a public good instance of this projct configured to run in[subdomain mode](https://docs.ipfs.tech/how-to/address-ipfs-on-web/#subdomain-gateway),
111
+
We provide a public good instance of this projct configured to run in[subdomain mode](https://docs.ipfs.tech/how-to/address-ipfs-on-web/#subdomain-gateway),
110
112
aiming to be a drop-in replacement for `dweb.link`:
111
113
112
114
- 🚧 **WIP: alpha quality**https://inbrowser.link hosts the `release` branch, with a stable [release](https://github.com/ipfs/service-worker-gateway/releases)
@@ -120,21 +122,31 @@ aiming to be a drop-in replacement for `ipfs.io`:
120
122
121
123
#### Deploying to `production` and `staging`
122
124
123
-
Deploying to [production](https://github.com/ipfs/service-worker-gateway/actions/workflows/deploy-to-production.yml) and [staging](https://github.com/ipfs/service-worker-gateway/actions/workflows/deploy-to-staging.yml) is done by manually running the deployment action and passing the release version to the action.
125
+
Deploying to [production](https://github.com/ipfs/service-worker-gateway/actions/workflows/deploy-to-production.yml)
126
+
and [staging](https://github.com/ipfs/service-worker-gateway/actions/workflows/deploy-to-staging.yml)
127
+
is done by manually running the deployment action and passing the release
128
+
version to the action.
124
129
125
130
## Manual Service Worker Deregistration
126
131
127
-
In some cases, you might want to manually unregister or remove the Helia service worker from your browser. This can be useful for debugging purposes or to ensure a clean state.
132
+
In some cases, you might want to manually unregister or remove the Helia service
133
+
worker from your browser. This can be useful for debugging purposes or to ensure
134
+
a clean state.
128
135
129
-
You can instruct the service worker to unregister itself by appending the `?ipfs-sw-unregister=true` query parameter to the URL of any page controlled by the service worker.
136
+
You can instruct the service worker to unregister itself by appending the
137
+
`?ipfs-sw-unregister=true` query parameter to the URL of any page controlled by
138
+
the service worker.
130
139
131
-
For example, if the service worker is active for `https://example.com`, navigating to `https://example.com/?ipfs-sw-unregister=true` will cause the service worker to unregister itself and attempt to reload all controlled clients (browser tabs).
140
+
For example, if the service worker is active for `https://example.com`,
141
+
navigating to `https://example.com/?ipfs-sw-unregister=true` will cause the
142
+
service worker to unregister itself and attempt to reload all controlled clients
143
+
(browser tabs).
132
144
133
-
This option is also available via a button on the service worker's configuration page (`#/ipfs-sw-config`).
145
+
This option is also available via a button on the service worker's configuration
146
+
page (`#/ipfs-sw-config`).
134
147
135
148
## License
136
149
137
-
This project is dual-licensed under
138
-
`SPDX-License-Identifier: Apache-2.0 OR MIT`
150
+
This project is dual-licensed under `SPDX-License-Identifier: Apache-2.0 OR MIT`
0 commit comments