mirror of
https://github.com/diced/zipline.git
synced 2026-04-28 10:43:06 -07:00
The non-API branch of setNotFoundHandler served the Next.js index shell without setting the status code, so clients saw HTTP 200 with a Not-Found UI. This broke monitoring, ingress proxy_intercept_errors rules, crawlers, and curl -f. Set status 404 explicitly before serving the index. Closes #1061 Co-authored-by: dicedtomato <git@diced.sh>
This commit is contained in:
@@ -19,6 +19,7 @@ export function registerHandlers(server: FastifyInstance, mode: string) {
|
||||
statusCode: 404,
|
||||
});
|
||||
} else {
|
||||
res.status(404);
|
||||
return res.serveIndex();
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user