From 34fdf7c5cecf9f4818d8c45fd1f1e92215e35ad0 Mon Sep 17 00:00:00 2001 From: wearrrrr Date: Thu, 22 Feb 2024 12:07:53 -0600 Subject: [PATCH] (hopefully) actually fix rh --- index.js | 10 +++++----- tsconfig.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/index.js b/index.js index 278b6ec..bd21d7d 100644 --- a/index.js +++ b/index.js @@ -17,8 +17,6 @@ const PORT = process.env.PORT || 3000; const bare = createBareServer("/bare/"); console.log(chalk.gray("Starting Bare...")); - -const rh = createRammerhead(); console.log(chalk.gray("Starting Rammerhead...")); const rammerheadScopes = [ @@ -35,15 +33,17 @@ const rammerheadScopes = [ "/editsession", "/needpassword", "/syncLocalStorage", - "/api/shuffleDict", - "/mainport", + "/api/shuffleDict" ]; const rammerheadSession = /^\/[a-z0-9]{32}/; function shouldRouteRh(req) { const url = new URL(req.url, "http://0.0.0.0"); - return rammerheadScopes.includes(url.pathname) || rammerheadSession.test(url.pathname); + return ( + rammerheadScopes.includes(url.pathname) || + rammerheadSession.test(url.pathname) + ); } function routeRhRequest(req, res) { diff --git a/tsconfig.json b/tsconfig.json index 8c130ec..5d8b237 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,6 +1,6 @@ { "extends": "astro/tsconfigs/strict", - "exclude": ["node_modules/**", "dist/**"], + "exclude": ["node_modules/**/*", "dist/**"], "compilerOptions": { "verbatimModuleSyntax": false }