Skip to content

Commit f910b9d

Browse files
committed
chore: switch to webui.ipfs.tech
Context: ipfs/ipfs-webui#2223
1 parent 7ca6433 commit f910b9d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

add-on/src/lib/ipfs-client/reloaders/webUiReloader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default class WebUiReloader extends ReloaderBase {
99
*/
1010
validation ({ url }) {
1111
const bundled = !url.startsWith('http') && url.includes('/webui/index.html#/')
12-
const ipns = url.includes('/webui.ipfs.io/#/')
12+
const ipns = url.includes('/webui.ipfs.tech/#/')
1313
return bundled || ipns
1414
}
1515

add-on/src/lib/precache.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export async function precache (ipfs, state) {
1515
try {
1616
let cid, name
1717
if (state.useLatestWebUI) { // resolve DNSLink
18-
cid = await ipfs.resolve('/ipns/webui.ipfs.io', { recursive: true })
19-
name = 'latest webui from DNSLink at webui.ipfs.io'
18+
cid = await ipfs.resolve('/ipns/webui.ipfs.tech', { recursive: true })
19+
name = 'latest webui from DNSLink at webui.ipfs.tech'
2020
} else { // find out safelisted path behind <api-port>/webui
2121
cid = new URL((await fetch(`${state.apiURLString}webui`)).url).pathname
2222
name = `stable webui hardcoded at ${state.apiURLString}webui`

add-on/src/lib/state.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export function initState (options, overrides) {
6363
Object.defineProperty(state, 'webuiRootUrl', {
6464
get: function () {
6565
// Did user opt-in for rolling release published on DNSLink?
66-
if (state.useLatestWebUI) return `${state.gwURLString}ipns/webui.ipfs.io/`
66+
if (state.useLatestWebUI) return `${state.gwURLString}ipns/webui.ipfs.tech/`
6767
return `${state.apiURLString}webui`
6868
}
6969
})

0 commit comments

Comments
 (0)