mirror of
https://github.com/diced/zipline.git
synced 2025-04-11 23:31:17 -05:00
fix: it's a little shorter, didn't realize this works too
This commit is contained in:
parent
b6898b0ad8
commit
b8e29fe839
1 changed files with 2 additions and 2 deletions
|
@ -6,8 +6,8 @@ function notFound(fastify: FastifyInstance, _: unknown, done: () => void) {
|
|||
done();
|
||||
|
||||
function notFound(this: FastifyReply) {
|
||||
if (process.env.NODE_ENV == 'development') return this.code(404).send('not found :(');
|
||||
if (this.server.config.features.headless) return this.callNotFound();
|
||||
if (this.server.config.features.headless || process.env.NODE_ENV == 'development')
|
||||
return this.callNotFound();
|
||||
return this.server.nextServer.render404(this.request.raw, this.raw);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue