From 7cb3509458f6a197a10bb5f02a68195cf37f803e Mon Sep 17 00:00:00 2001 From: alan890104 Date: Sun, 30 Apr 2023 07:24:09 +0800 Subject: [PATCH] * fix(helpers.ts): change production base URL from "/sharex" to "/sharex-interface" to match the actual URL. --- src/services/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/helpers.ts b/src/services/helpers.ts index 2e41e65..302b291 100644 --- a/src/services/helpers.ts +++ b/src/services/helpers.ts @@ -53,7 +53,7 @@ export const isVideo = (type: string): boolean => { * @returns A string representing the IPFS gateway link for the specified file object. */ export const generateLink = (item: FileDetail, address?: string): string => { - const base = `${window.location.origin}${process.env.NODE_ENV === "production" ? "/sharex" : ""}` + const base = `${window.location.origin}${process.env.NODE_ENV === "production" ? "/sharex-interface" : ""}` if (item.secret && address) { const hash = ethers.utils.solidityKeccak256(["string", "string", "address"], [item.cid, item.secret, address]); return `${base}/download?value=${hash}&filename=${item.file.name}&secret=${!!item.secret}`;