diff --git a/examples/with-fastify/src/server.tsx b/examples/with-fastify/src/server.tsx index 1a9b7d487..4b0f32527 100644 --- a/examples/with-fastify/src/server.tsx +++ b/examples/with-fastify/src/server.tsx @@ -18,7 +18,7 @@ const jsScriptTagsFromAssets = (assets: Record, entryPoint: string, (assets && assets[entryPoint]?.js.map((asset: string) => ``).join("")) || ""; const app = fastify() - .register(fastifyStatic, { root: process.env.RAZZLE_PUBLIC_DIR!, prefix: "/public" }) + .register(fastifyStatic, { root: __dirname, prefix: "/public" }) .get("/*", async (req, res) => { const context: { url?: string } = {}; const markup = renderToString(