Skip to content

Commit f38658f

Browse files
authored
enabled swagger UI on production (#127)
1 parent a1b78d3 commit f38658f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

server/helpers/server.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,15 @@ const createServer = async (serverName: string): Promise<FastifyInstance> => {
2626
);
2727
}
2828

29-
if (process.env.NODE_ENV === "production") {
30-
if (request.routerPath?.includes("static")) {
31-
return reply.status(404).send({
32-
statusCode: 404,
33-
error: "Not Found",
34-
message: "Not Found",
35-
});
36-
}
37-
}
29+
// if (process.env.NODE_ENV === "production") {
30+
// if (request.routerPath?.includes("static")) {
31+
// return reply.status(404).send({
32+
// statusCode: 404,
33+
// error: "Not Found",
34+
// message: "Not Found",
35+
// });
36+
// }
37+
// }
3838

3939
const { url } = request;
4040
// Skip Authentication for Health Check and Static Files and JSON Files for Swagger

0 commit comments

Comments
 (0)