forked from SCOAP3/scoap3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ref: cern-sis/issues-scoap3#226
- Loading branch information
Showing
5 changed files
with
59 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
/** @type {import('next').NextConfig} */ | ||
|
||
const nextConfig = { | ||
experimental: { | ||
largePageDataBytes: 256 * 100000, | ||
}, | ||
} | ||
}; | ||
|
||
module.exports = nextConfig | ||
module.exports = nextConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from "react"; | ||
import { SearchOutlined } from "@ant-design/icons"; | ||
|
||
const PageNotFound = () => { | ||
return ( | ||
<div className="error-page"> | ||
<SearchOutlined /> | ||
<h1> | ||
Page not found | ||
</h1> | ||
<p>The page you are looking for could not be found.</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default PageNotFound; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from "react"; | ||
import { useRouter } from "next/router"; | ||
import { ExclamationCircleOutlined } from "@ant-design/icons"; | ||
|
||
const ServerErrorPage = () => { | ||
const router = useRouter(); | ||
|
||
return ( | ||
<div className="error-page"> | ||
<ExclamationCircleOutlined /> | ||
<h1>Something went wrong</h1> | ||
<p> | ||
Please try again later or{" "} | ||
<a type="button" onClick={() => router.push('/')}> | ||
go to home page | ||
</a> | ||
</p> | ||
</div> | ||
); | ||
}; | ||
|
||
export default ServerErrorPage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters