Repro
- Run
now
and visit<deployed URL>/api/endpoint
to see that the endpoint works as expected. - Run
now dev
and visitlocalhost:3000/api/endpoint
to see that the endpoint doesn't work as expected. There is a 404 instead.
Notes
- Based on the now gatsby example
now
version: 15.7.0- Removing the static builds builder from
now.json
fixes the issue.