From 1a0829968a859080085c98775f4d29424fc81d9f Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Sat, 15 Jan 2022 22:07:12 -0500 Subject: [PATCH] Fix broken window.location.href on NextJS server --- web/pages/404.tsx | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/web/pages/404.tsx b/web/pages/404.tsx index 7fc75379..efc4eb10 100644 --- a/web/pages/404.tsx +++ b/web/pages/404.tsx @@ -1,18 +1,13 @@ +import { useEffect } from 'gridjs' import { Page } from '../components/page' import { Title } from '../components/title' export default function Custom404() { - // Get the current URL from the window - const url = window.location.href - return (
- <p> - Nothing exists at - <span className="p-2 font-mono">{url}</span> - </p> + <p>Nothing exists at this location.</p> <p>If you didn't expect this, let us know on Discord!</p> <br /> <iframe