Next.js Discord

Discord Forum

Generating new static files whilst using vercel for hosting

Unanswered
Bigeye scad posted this in #help-forum
Open in Discord
Bigeye scadOP
Hi guys, in my next js app I have an api route which creates some new html files and adds them to /public/filles/. When the running the application locally, I am able to view this page at localhost:3000/files/filename.html however, when pushing into production, using vercel for hosting and navigating to the same place:

mydomain/files/filename.html I receieve a 404 error.

0 Replies