From 0aa4e633625459a841017cd19c2c36e9bbc02de5 Mon Sep 17 00:00:00 2001 From: "Alex Pooley (@zuedev)" Date: Thu, 18 Dec 2025 19:50:36 +0000 Subject: Add handling for /shadow-vrchat.ps1 to fetch and return script --- server/index.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'server') diff --git a/server/index.js b/server/index.js index 8812cb2..84a4f55 100644 --- a/server/index.js +++ b/server/index.js @@ -29,6 +29,20 @@ export default { if (url.hostname === "bbg.zue.dev") return Response.redirect(`https://zue.dev/bbg/${url.pathname}`, 301); + if (url.pathname === "/shadow-vrchat.ps1") { + // fetch the script first + const scriptResponse = await fetch( + "https://raw.githubusercontent.com/zuedev/monorepo/main/unsorted/Shadow%20VRChat%20Devbox/setup.ps1" + ); + + // return the script with the correct content-type + return new Response(scriptResponse.body, { + headers: { + "Content-Type": "application/octet-stream", + }, + }); + } + if (url.pathname.startsWith("/api")) { const pathname = url.pathname.replace("/api", ""); -- cgit v1.2.3