temporarily switch to /api/ route for raw files

This commit is contained in:
Max Leiter 2023-02-21 22:52:51 -08:00
parent b5b4bf08f6
commit 072516bdb0

View file

@ -106,8 +106,9 @@ const Document = ({ skeleton, ...props }: Props) => {
> >
{title} {title}
</Link> </Link>
{/* TODO: switch to api once next.js bug is fixed */}
{/* Not /api/ because of rewrites defined in next.config.mjs */} {/* Not /api/ because of rewrites defined in next.config.mjs */}
<DownloadButtons rawLink={`/file/raw/${id}`} /> <DownloadButtons rawLink={`/api/file/raw/${id}`} />
</header> </header>
<div className={styles.documentContainer}> <div className={styles.documentContainer}>
<DocumentTabs <DocumentTabs