From 5f493e3abfccef71e859e687524dc99404f22f0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20Kadir=20Ak=C4=B1n?= Date: Wed, 11 Feb 2026 02:10:50 +0300 Subject: [PATCH] chore(next.config.ts): add redirection for book PDF downloads to GitHub raw --- next.config.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/next.config.ts b/next.config.ts index 3d17c017..185d0d24 100644 --- a/next.config.ts +++ b/next.config.ts @@ -55,6 +55,12 @@ const nextConfig: NextConfig = { destination: "/embed", permanent: true, }, + // Redirect book PDF downloads to GitHub raw to save Vercel edge bandwidth + { + source: "/book-pdf/:filename", + destination: "https://raw.githubusercontent.com/f/prompts.chat/refs/heads/main/public/book-pdf/:filename", + permanent: false, + }, ]; }, };