From d9447c83ac884ff4f273f11c9be080d862b17136 Mon Sep 17 00:00:00 2001 From: Songkeys Date: Fri, 2 Sep 2022 13:14:58 +0800 Subject: [PATCH] refactor: 4everland.io -> 4everland.xyz --- .env.example | 2 +- deploy/prod/secrets.yaml | 2 +- src/lib/env.ts | 2 +- src/lib/ipfs-parser.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.env.example b/.env.example index 7cca66a0..065c5658 100644 --- a/.env.example +++ b/.env.example @@ -9,6 +9,6 @@ NEXT_PUBLIC_DISCORD_LINK="https://discord.gg/9XscSqJEq4" NEXT_PUBLIC_GITHUB_LINK="https://github.com/Crossbell-Box/xlog" NEXT_PUBLIC_CSB_IO="https://crossbell.io" NEXT_PUBLIC_CSB_SCAN="https://scan.crossbell.io" -NEXT_PUBLIC_IPFS_GATEWAY="https://ipfs.4everland.io/ipfs/" +NEXT_PUBLIC_IPFS_GATEWAY="https://ipfs.4everland.xyz/ipfs/" REDIS_URL= \ No newline at end of file diff --git a/deploy/prod/secrets.yaml b/deploy/prod/secrets.yaml index c5fcf91c..5862ee17 100644 --- a/deploy/prod/secrets.yaml +++ b/deploy/prod/secrets.yaml @@ -7,7 +7,7 @@ stringData: NEXT_PUBLIC_GITHUB_LINK: "https://github.com/Crossbell-Box/xlog" NEXT_PUBLIC_CSB_IO: "https://crossbell.io" NEXT_PUBLIC_CSB_SCAN: "https://scan.crossbell.io" - NEXT_PUBLIC_IPFS_GATEWAY: "https://ipfs.4everland.io/ipfs/" + NEXT_PUBLIC_IPFS_GATEWAY: "https://ipfs.4everland.xyz/ipfs/" REDIS_URL: ${REDIS_URL} kind: Secret metadata: diff --git a/src/lib/env.ts b/src/lib/env.ts index 60727124..b330aa1d 100644 --- a/src/lib/env.ts +++ b/src/lib/env.ts @@ -12,4 +12,4 @@ export const CSB_IO = process.env.NEXT_PUBLIC_CSB_IO || "https://crossbell.io" export const CSB_SCAN = process.env.NEXT_PUBLIC_CSB_SCAN || "https://scan.crossbell.io" export const IPFS_GATEWAY = - process.env.NEXT_PUBLIC_IPFS_GATEWAY || "https://ipfs.4everland.io/ipfs/" + process.env.NEXT_PUBLIC_IPFS_GATEWAY || "https://ipfs.4everland.xyz/ipfs/" diff --git a/src/lib/ipfs-parser.ts b/src/lib/ipfs-parser.ts index 65571656..e339d00f 100644 --- a/src/lib/ipfs-parser.ts +++ b/src/lib/ipfs-parser.ts @@ -6,7 +6,7 @@ export const toGateway = (url: string) => { .replace("https://gateway.ipfs.io/ipfs/", IPFS_GATEWAY) .replace("https://ipfs.io/ipfs/", IPFS_GATEWAY) .replace("https://cf-ipfs.com/ipfs/", IPFS_GATEWAY) - .replace("https://ipfs.4everland.io/ipfs/", IPFS_GATEWAY) + .replace("https://ipfs.4everland.xyz/ipfs/", IPFS_GATEWAY) } export const toIPFS = (url: string) => {