Skip to content

Commit 5f493e3

Browse files
committed
chore(next.config.ts): add redirection for book PDF downloads to GitHub raw
1 parent 267e245 commit 5f493e3

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

next.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ const nextConfig: NextConfig = {
5555
destination: "/embed",
5656
permanent: true,
5757
},
58+
// Redirect book PDF downloads to GitHub raw to save Vercel edge bandwidth
59+
{
60+
source: "/book-pdf/:filename",
61+
destination: "https://raw.githubusercontent.com/f/prompts.chat/refs/heads/main/public/book-pdf/:filename",
62+
permanent: false,
63+
},
5864
];
5965
},
6066
};

0 commit comments

Comments
 (0)