misc changes on website:

- correct a few content mistakes
- activate compression on production server
- suppress a few TS warnings (with anys, I know)
This commit is contained in:
Emmanuel Pelletier
2024-05-02 09:48:59 +02:00
parent 14044e95a4
commit 21521277b0
8 changed files with 219 additions and 10 deletions

View File

@@ -1,11 +1,14 @@
import { join } from "path"
import Fastify from "fastify"
import staticMiddleware from "@fastify/static"
import fsfStatic from "@fastify/static"
import fsfCompress from "@fastify/compress"
const fastify = Fastify({
logger: true,
})
fastify.register(staticMiddleware, {
fastify.register(fsfCompress)
fastify.register(fsfStatic, {
root: join(import.meta.dirname, process.env.STATIC_DIR || "dist"),
})