fix stupid view transition shit and make basic server

This commit is contained in:
rift 2024-07-23 20:55:18 -05:00
parent 2b7380ba57
commit 98cf07b676
7 changed files with 875 additions and 113 deletions

22
server.js Normal file
View file

@ -0,0 +1,22 @@
import fastify from "fastify";
import fastifyStatic from "@fastify/static";
import path from "path";
import { fileURLToPath } from "url";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const app = fastify({ logger: false });
await app.register(import("@fastify/compress"));
app.register(fastifyStatic, {
root: path.join(__dirname, "dist"),
prefix: "/",
serve: true,
wildcard: false,
});
app.listen({
port: 8080,
host: "0.0.0.0",
});