chore(next.config.ts): add redirection for book PDF downloads to GitHub raw

This commit is contained in:
Fatih Kadir Akın
2026-02-11 02:10:50 +03:00
parent 267e245859
commit 5f493e3abf

View File

@@ -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,
},
];
},
};