Skip to content

Commit

Permalink
chore: switch to webui.ipfs.tech
Browse files Browse the repository at this point in the history
  • Loading branch information
lidel committed Apr 17, 2024
1 parent 7ca6433 commit f910b9d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion add-on/src/lib/ipfs-client/reloaders/webUiReloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default class WebUiReloader extends ReloaderBase {
*/
validation ({ url }) {
const bundled = !url.startsWith('http') && url.includes('/webui/index.html#/')
const ipns = url.includes('/webui.ipfs.io/#/')
const ipns = url.includes('/webui.ipfs.tech/#/')
return bundled || ipns
}

Expand Down
4 changes: 2 additions & 2 deletions add-on/src/lib/precache.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ export async function precache (ipfs, state) {
try {
let cid, name
if (state.useLatestWebUI) { // resolve DNSLink
cid = await ipfs.resolve('/ipns/webui.ipfs.io', { recursive: true })
name = 'latest webui from DNSLink at webui.ipfs.io'
cid = await ipfs.resolve('/ipns/webui.ipfs.tech', { recursive: true })
name = 'latest webui from DNSLink at webui.ipfs.tech'
} else { // find out safelisted path behind <api-port>/webui
cid = new URL((await fetch(`${state.apiURLString}webui`)).url).pathname
name = `stable webui hardcoded at ${state.apiURLString}webui`
Expand Down
2 changes: 1 addition & 1 deletion add-on/src/lib/state.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export function initState (options, overrides) {
Object.defineProperty(state, 'webuiRootUrl', {
get: function () {
// Did user opt-in for rolling release published on DNSLink?
if (state.useLatestWebUI) return `${state.gwURLString}ipns/webui.ipfs.io/`
if (state.useLatestWebUI) return `${state.gwURLString}ipns/webui.ipfs.tech/`
return `${state.apiURLString}webui`
}
})
Expand Down

0 comments on commit f910b9d

Please sign in to comment.