diff --git a/app/fastify-server.ts b/app/fastify-server.ts index 58463ce..b1d76a6 100644 --- a/app/fastify-server.ts +++ b/app/fastify-server.ts @@ -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, }); diff --git a/app/pages/+config.ts b/app/pages/+config.ts index bdcdfe4..5981928 100755 --- a/app/pages/+config.ts +++ b/app/pages/+config.ts @@ -25,7 +25,7 @@ export default { class: "flex min-h-full bg-white", }, - image: "/og.webp", + image: "/og.png", prerender: true, prefetchStaticAssets: "hover", diff --git a/app/pages/test/+Page.mdx b/app/pages/test/+Page.mdx deleted file mode 100644 index dc3a29d..0000000 --- a/app/pages/test/+Page.mdx +++ /dev/null @@ -1,11 +0,0 @@ -import { Button } from "@/components/Button"; - -# TEST - - - -> OK - -```tsx -console.log("It works"); -``` \ No newline at end of file diff --git a/app/public/og.png b/app/public/og.png new file mode 100644 index 0000000..f5fce18 Binary files /dev/null and b/app/public/og.png differ