Running now dev
works fine for the Gatsby website and I can see it correctly at http://localhost:3000
.
But as soon as I browse to /api/locations
it doesn't work anymore:
> GET /api/locations
> Building @now/node:api/locations/index.js
downloading user files...
installing dependencies for user's code...
installing to /var/folders/4y/mlqsnhbx4yx7kwfcg8s3b9880000gn/T/co.zeit.now/dev/workPaths/7fvnfnob/api/locations
running user script...
running "npm run now-build"
What is happening here is that the now-build
step is being triggered again.
The result is that the process is not working correctly and after trying to rebuild again the "gatsby" part, it crashes.