Fix broken window.location.href on NextJS server
This commit is contained in:
parent
46dbc7c989
commit
1a0829968a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user