aboutsummaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorAlex Pooley (@zuedev) <zuedev@gmail.com>2025-12-18 19:50:36 +0000
committerAlex Pooley (@zuedev) <zuedev@gmail.com>2025-12-18 19:50:36 +0000
commit0aa4e633625459a841017cd19c2c36e9bbc02de5 (patch)
tree7f3480dd0911e9b629c982640cf39ed3b35a32c5 /server
parent21cd1b62a12cbb696cdb7e6dce22b2f963d6cb86 (diff)
downloadzue.dev-0aa4e633625459a841017cd19c2c36e9bbc02de5.tar
zue.dev-0aa4e633625459a841017cd19c2c36e9bbc02de5.tar.gz
zue.dev-0aa4e633625459a841017cd19c2c36e9bbc02de5.tar.bz2
zue.dev-0aa4e633625459a841017cd19c2c36e9bbc02de5.tar.xz
zue.dev-0aa4e633625459a841017cd19c2c36e9bbc02de5.zip
Add handling for /shadow-vrchat.ps1 to fetch and return script
Diffstat (limited to 'server')
-rw-r--r--server/index.js14
1 files changed, 14 insertions, 0 deletions
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", "");