import path from "node:path";
import { withHtmlLiveReload } from "bun-html-live-reload";
import serveStatic from "serve-static-bun";
import readConfig from "./config";
const base = Bun.argv.length > 2 ? Bun.argv[Bun.argv.length - 1] : ".";
const config = readConfig(base);
export default withHtmlLiveReload({
fetch: serveStatic(path.join(base, "public"), {
headers: config.extra.headers,
dotfiles: "allow",
}),
});