added initial istio BLAHAJ code

This commit is contained in:
2025-08-27 19:32:09 -04:00
parent 44de4f6345
commit ba11630d56
22 changed files with 438 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
const serveFile = (path) => new Response(Bun.file(path));
const server = Bun.serve({
port: Number(process.env.PORT || 8080),
async fetch(req) {
const url = new URL(req.url);
if (url.pathname === '/') return serveFile('./public/index.html');
if (url.pathname.startsWith('/static/')) {
return serveFile(`.${url.pathname}`);
}
return serveFile('./public/index.html');
},
});
console.log(`reef listening on ${server.port};`);