Get a version of the file:/// local build working again

This commit is contained in:
Jamie Wong
2025-01-15 12:16:25 -08:00
parent 22dd4583df
commit 9b0bdd282a
4 changed files with 47 additions and 12 deletions
+5 -1
View File
@@ -17,7 +17,11 @@ async function main() {
// I could just build my own server to do this and call rebuild manually, but
// this is good enough for now.
let buildResult = await ctx.rebuild()
generateIndexHtml(buildResult, outdir)
generateIndexHtml({
buildResult,
outdir,
servingProtocol: 'http',
})
let {host, port} = await ctx.serve({
servedir: outdir,