Hello! I have a similar issue with my site not downloading the file when the site is deployed at the following link: https://williamperez.me/ Any help is greatly appreciated
Hi, @willperez23. I split this into a new topic as the issue you are experiencing is unrelated the original topic where this was posted.
The site’s repo is public so I cloned it and ran the build command. The build command does not put the files in src/files/
into the directory dist
.
If you modify your build command to copy the required files to dist
they will then be present when the build is deployed.
If there are other questions about this, please feel free to reply here anytime.
Hi, I think I have the same issue, during development I can download both files, but once deployed it prints on the console: 404 not found and a PDF file is downloaded but with an error. How should I modify the build command to copy the required files? This is my website and the repo:
https://delicate-parfait-3764f8.netlify.app/
Thank you!
Can you tell us which URL shows the error? Your site rendered well for me and I couldn’t find a PDF link there.
Hi, yeah, this is the webpage: https://delicate-parfait-3764f8.netlify.app/ in the upper right corner there is a CV option button, when you click it should download a PDF file, the PDF file is in Spanish or English depending on the language that is chosen, a PDF file is download, but it shows an error when you try to open it.
If you download your deploy, you will see there are no PDF files in the publish directory:
/index.html
/assets/icon.990241a0.svg
/assets/index.a3cf4e68.css
/assets/undraw_adventure_re_ncqp.d64de8ce.svg
/assets/undraw_developer_activity_re_39tg.523e4b7e.svg
/assets/undraw_pair_programming_re_or4x.fda87e7b.svg
/assets/index.54f469c9.js
/assets/wheater.3e79b490.png
/assets/ecommerce.f40d8770.png
/assets/pokemon.cef33f0b.png
/assets/rickandmorty.e58b17ff.png
You will need to make certain the build command is copying the PDF files to the publish directory (which is dist
). I see the PDFs in the repo. They just are not making into the publish directory during the build.
Once that is fixed it should work and, if not or if there are other questions, please let us know.
@luke Same issue here…Found that the deploy folder doesn’t have that pdf…how do I fix this so that the pdf makes it’s way to the build directory. In my local server it works fine.
Hi, @bishal. It is impossible to answer the question without first examining what you are doing. Do you have a link to the repo or to the site in question?