Skip to content

Commit

Permalink
* fix(helpers.ts): change production base URL from "/sharex" to "/sha…
Browse files Browse the repository at this point in the history
…rex-interface" to match the actual URL.
  • Loading branch information
alan890104 committed Apr 29, 2023
1 parent 2390dea commit 7cb3509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down

0 comments on commit 7cb3509

Please sign in to comment.