diff --git a/components/DownloadBtnGtoup.tsx b/components/DownloadBtnGtoup.tsx index b6b2f38..7f0eabc 100644 --- a/components/DownloadBtnGtoup.tsx +++ b/components/DownloadBtnGtoup.tsx @@ -72,13 +72,13 @@ const DownloadButtonGroup: React.FC<{ downloadUrl: string }> = ({ downloadUrl }) btnIcon="file-download" btnTitle="Download the file directly through OneDrive" /> - window.open(`/api/proxy?url=${encodeURIComponent(downloadUrl)}`)} btnColor="teal" btnText="Proxy download" btnIcon="download" btnTitle="Download the file with the stream proxied through Vercel Serverless" - /> + /> */} { clipboard.copy(`${getBaseUrl()}/api?path=${asPath}&raw=true`) diff --git a/components/previews/VideoPreview.tsx b/components/previews/VideoPreview.tsx index 3334acd..d472a77 100644 --- a/components/previews/VideoPreview.tsx +++ b/components/previews/VideoPreview.tsx @@ -32,14 +32,14 @@ const VideoPreview: React.FC<{ file: any }> = ({ file }) => { btnText="Download" btnIcon="file-download" /> - window.open(`/api/proxy?url=${encodeURIComponent(file['@microsoft.graph.downloadUrl'])}`) } btnColor="teal" btnText="Proxy download" btnIcon="download" - /> + /> */} { clipboard.copy(`${getBaseUrl()}/api?path=${asPath}&raw=true`) diff --git a/package-lock.json b/package-lock.json index 317f84e..e32c36f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2770,9 +2770,9 @@ "dev": true }, "node_modules/follow-redirects": { - "version": "1.14.3", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.3.tgz", - "integrity": "sha512-3MkHxknWMUtb23apkgz/83fDoe+y+qr0TdgacGIA7bew+QLBo3vdgEN2xEsuXNivpFy4CyDhBBZnNZOtalmenw==", + "version": "1.14.7", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.7.tgz", + "integrity": "sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ==", "funding": [ { "type": "individual", @@ -9488,9 +9488,9 @@ "dev": true }, "follow-redirects": { - "version": "1.14.3", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.3.tgz", - "integrity": "sha512-3MkHxknWMUtb23apkgz/83fDoe+y+qr0TdgacGIA7bew+QLBo3vdgEN2xEsuXNivpFy4CyDhBBZnNZOtalmenw==" + "version": "1.14.7", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.7.tgz", + "integrity": "sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ==" }, "foreach": { "version": "2.0.5",