File not present after deploy

Hello! I have a similar issue with my site not downloading the file when the site is deployed at the following link: 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:

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: 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:


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.

1 Like

@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?