Skip to content

Commit

Permalink
Fix corsproxy
Browse files Browse the repository at this point in the history
  • Loading branch information
pipe01 committed Jan 28, 2025
1 parent 4c59585 commit 79c3248
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/wasm/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export async function getZipOrNested(data: Uint8Array, maxDepth = 5): Promise<FS
export function resolveArtifactUrl(url: string) {
const matches = /artifact:\/\/(.+\/.+)\/(\d+)/.exec(url);
if (matches) {
return `https://corsproxy.io/?https://nightly.link/${matches[1]}/actions/artifacts/${matches[2]}.zip`;
return `https://corsproxy.io/?url=https://nightly.link/${matches[1]}/actions/artifacts/${matches[2]}.zip`;
}

return url;
Expand Down

0 comments on commit 79c3248

Please sign in to comment.