mirror of
https://github.com/f/awesome-chatgpt-prompts.git
synced 2026-02-12 07:42:47 +00:00
chore(next.config.ts): add redirection for book PDF downloads to GitHub raw
This commit is contained in:
@@ -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,
|
||||
},
|
||||
];
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user