diff options
Diffstat (limited to 'lib/app.js')
| -rw-r--r-- | lib/app.js | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -15,11 +15,11 @@ import { socketServer } from "$lib/sockets"; const app = fastify({ logger: pino(), disableRequestLogging: true, - maxParamLength: 500, + maxParamLength: 500 }); app.register(fastifySecureSession, { - key: Buffer.from(config.jwt, "hex"), + key: Buffer.from(config.jwt, "hex") }); app.register(fastifyPassport.initialize()); @@ -31,7 +31,7 @@ app.register(fastifyMultipart); app.register(fastifyStatic, { root: path.join("/app/data/uploads"), - prefix: "/public/", + prefix: "/public/" }); app.register(fastifyWs); @@ -46,7 +46,10 @@ app.setErrorHandler((error, request, reply) => { }); app.setNotFoundHandler((request, reply) => { - reply.code(404).type("text/html").send("Not Found"); + reply + .code(404) + .type("text/html") + .send("Not Found"); }); export default app; |
