From 072516bdb062e0e164dbe5ea8d417a78486ab786 Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Tue, 21 Feb 2023 22:52:51 -0800 Subject: [PATCH] temporarily switch to /api/ route for raw files --- .../post/[id]/components/post-files/view-document/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/(posts)/post/[id]/components/post-files/view-document/index.tsx b/src/app/(posts)/post/[id]/components/post-files/view-document/index.tsx index 33e9f220..0f1d6d1e 100644 --- a/src/app/(posts)/post/[id]/components/post-files/view-document/index.tsx +++ b/src/app/(posts)/post/[id]/components/post-files/view-document/index.tsx @@ -106,8 +106,9 @@ const Document = ({ skeleton, ...props }: Props) => { > {title} + {/* TODO: switch to api once next.js bug is fixed */} {/* Not /api/ because of rewrites defined in next.config.mjs */} - +