Fix broken window.location.href on NextJS server

This commit is contained in:
Austin Chen 2022-01-15 22:07:12 -05:00
parent 46dbc7c989
commit 1a0829968a

View File

@ -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 (
<Page>
<div className="flex flex-col items-center justify-center h-full">
<Title text="404: Oops!" />
<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