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 { Page } from '../components/page'
|
||||||
import { Title } from '../components/title'
|
import { Title } from '../components/title'
|
||||||
|
|
||||||
export default function Custom404() {
|
export default function Custom404() {
|
||||||
// Get the current URL from the window
|
|
||||||
const url = window.location.href
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Page>
|
<Page>
|
||||||
<div className="flex flex-col items-center justify-center h-full">
|
<div className="flex flex-col items-center justify-center h-full">
|
||||||
<Title text="404: Oops!" />
|
<Title text="404: Oops!" />
|
||||||
<p>
|
<p>Nothing exists at this location.</p>
|
||||||
Nothing exists at
|
|
||||||
<span className="p-2 font-mono">{url}</span>
|
|
||||||
</p>
|
|
||||||
<p>If you didn't expect this, let us know on Discord!</p>
|
<p>If you didn't expect this, let us know on Discord!</p>
|
||||||
<br />
|
<br />
|
||||||
<iframe
|
<iframe
|
||||||
|
|
Loading…
Reference in New Issue
Block a user