v1.0.3 - Simple PHP support! 🎉 (#15)

- Basic PHP support.
- Cosmetic things here and there.
- Fix publish directory option.
This commit is contained in:
Andras Bacsai
2021-04-02 15:05:23 +02:00
committed by GitHub
parent 767c65ab10
commit 5573187d43
15 changed files with 6593 additions and 140 deletions

View File

@@ -31,7 +31,7 @@ if (process.env.NODE_ENV === 'production') {
fastify.register(require('./app'), { prefix: '/api/v1' })
fastify.setErrorHandler(async (error, request, reply) => {
console.log(error)
console.log({ error })
if (error.statusCode) {
reply.status(error.statusCode).send({ message: error.message } || { message: 'Something is NOT okay. Are you okay?' })
} else {