Thanks for sharing the repo! It looks like the “check the deployment output” section of the 404 debugging post has the answer.
If the project uses a traditionally server-side framework, such as Express , you should make sure to put the
index.js
file in a/api
directory so it will be deployed as a serverless function. In that case the path to the first page of your site would look likemy-website.com/api
which can be altered to use the root path/
using rewrites .
You can find more info and a complete example project in this guide