From 7c823d1f8b04c5915937d074a833281ca9eef7f7 Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:49:07 -0400 Subject: [PATCH] Remove url options parsing from server renderer This will be done via the api --- pages/mod-queue.page.server.tsx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/pages/mod-queue.page.server.tsx b/pages/mod-queue.page.server.tsx index 36dcfa3..ca51cae 100644 --- a/pages/mod-queue.page.server.tsx +++ b/pages/mod-queue.page.server.tsx @@ -21,11 +21,6 @@ export async function onBeforeRender(pageContext: PageContext) { report: "Game Reports", }; - const { searchParams } = new URL( - pageContext.urlOriginal, - "http://localhost:8788" - ); - const allowedTypes = []; for (const [type, ints] of Object.entries(typePermissions)) { @@ -41,10 +36,6 @@ export async function onBeforeRender(pageContext: PageContext) { status: 403, }; - const includeClosed = searchParams.get("includeClosed"); - const type = searchParams.get("type"); - const sort = searchParams.get("sort") ?? "asc"; - return { pageContext: { pageProps: {