Come on fastify really? I had to ADD THAT??
This commit is contained in:
@@ -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 () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user