temporarily switch to /api/ route for raw files
This commit is contained in:
parent
b5b4bf08f6
commit
072516bdb0
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue