Exosphere is a set of small, modular, self-hostable community tools built on the AT Protocol. app.exosphere.site
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: dev server

Hugo 7b0ab6cd 4c4b9d16

+2 -1
+2 -1
packages/app/src/vite-ssr-plugin.ts
··· 1 1 import type { Plugin, ViteDevServer, ModuleNode } from "vite"; 2 + import fs from "node:fs"; 2 3 import path from "node:path"; 3 4 import { ssrPrefetch } from "./ssr-prefetch.ts"; 4 5 ··· 106 107 } 107 108 108 109 // Read and transform the index.html template 109 - let template = await Bun.file(path.resolve(server.config.root, "index.html")).text(); 110 + let template = fs.readFileSync(path.resolve(server.config.root, "index.html"), "utf-8"); 110 111 template = await server.transformIndexHtml(url, template); 111 112 112 113 // Load the SSR entry via Vite's module graph (supports HMR)