Come on fastify really? I had to ADD THAT??

This commit is contained in:
MotorTruck1221 2025-05-05 00:53:29 -06:00
parent b64757748e
commit 6ecff4756d
No known key found for this signature in database
GPG key ID: 08F417E2B8B61EA4

View file

@ -44,6 +44,10 @@ await app.register(fastifyMiddie);
await app.use(astroHandler); await app.use(astroHandler);
app.setNotFoundHandler((req, res) => {
res.redirect('/404'); // This is hacky as hell
});
const port = parseInt(process.env.PORT as string) || parseInt("8080"); const port = parseInt(process.env.PORT as string) || parseInt("8080");
app.listen({ port: port, host: "0.0.0.0" }).then(async () => { app.listen({ port: port, host: "0.0.0.0" }).then(async () => {