Next.js Discord

Discord Forum

Expressjs Static File Serving on Vercel

Unanswered
Cão de Castro Laboreiro posted this in #help-forum
Open in Discord
Cão de Castro LaboreiroOP
Hi guys, I'm getting an internal server error when I attempt to serve static files with express. here's the repo https://github.com/NuminousCode/node-express-vercel.git please let me know if you have any suggestions, thank you

1 Reply

This generally wouldn't be a supported pattern for serverless. You can just add a /public directory which will allow Vercel to host the files in a more effecient way. There's a guide here for using Express with Vercel

https://vercel.com/guides/using-express-with-vercel