Skip to content

Dynamic routes for static .pdf files #1002

Closed Answered by charleslavon
shelegdmitriy asked this question in Q&A
Discussion options

You must be logged in to vote

hey @shelegdmitriy thanks for starting a discussion. I plan to look into leveraging a cdn to serve these files, to reduce the amount of bandwith from our vercal plan that we're using to serve these files because these pdfs have become the top sources of bandwidth consumption on vercel. So there will likely be a change in the URLs we use to reference these PDFs.

Can you clarify what problem you're trying to solve? Is it how to avoid passing props which contain the PDF titles into bos components? We could also hard code them within components like we do our relative urls /papers/the-white-paper.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by shelegdmitriy
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants