rework/lightweight #12

Merged
GauthierWebDev merged 106 commits from rework/lightweight into main 2025-04-21 16:27:38 +00:00
4 changed files with 3 additions and 13 deletions
Showing only changes of commit 48bc83cdad - Show all commits

View File

@ -1,3 +1,4 @@
import fastifyStatic from "@fastify/static";
import { fileURLToPath } from "node:url";
import { search } from "./libs/search";
import { dirname } from "node:path";
@ -14,7 +15,7 @@ const pagesDir = `${root}/dist/client`;
async function startServer() {
const app = Fastify();
await app.register(await import("@fastify/static"), {
app.register(fastifyStatic, {
root: `${root}/dist/client`,
wildcard: false,
});

View File

@ -25,7 +25,7 @@ export default {
class: "flex min-h-full bg-white",
},
image: "/og.webp",
image: "/og.png",
prerender: true,
prefetchStaticAssets: "hover",

View File

@ -1,11 +0,0 @@
import { Button } from "@/components/Button";
# TEST
<Button>test</Button>
> OK
```tsx
console.log("It works");
```

BIN
app/public/og.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB