Add 404 page
This commit is contained in:
parent
4d138f5773
commit
cef4e6373e
32
public/404.html
Normal file
32
public/404.html
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta
|
||||||
|
name="viewport"
|
||||||
|
content="width=device-width, initial-scale=1, viewport-fit=cover"
|
||||||
|
/>
|
||||||
|
<title>Page not found</title>
|
||||||
|
<meta name="color-scheme" content="dark light" />
|
||||||
|
<style>
|
||||||
|
body {
|
||||||
|
text-align: center;
|
||||||
|
font-family: ui-rounded, -apple-system, BlinkMacSystemFont, Segoe UI,
|
||||||
|
Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
min-height: 100vh;
|
||||||
|
}
|
||||||
|
h1 {
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>Page not found</h1>
|
||||||
|
<p><a href="/">Go home</a></p>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -37,6 +37,7 @@ const rollbarCode = fs.readFileSync(
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
base: './',
|
base: './',
|
||||||
envPrefix: allowedEnvPrefixes,
|
envPrefix: allowedEnvPrefixes,
|
||||||
|
appType: 'mpa',
|
||||||
mode: NODE_ENV,
|
mode: NODE_ENV,
|
||||||
define: {
|
define: {
|
||||||
__BUILD_TIME__: JSON.stringify(now),
|
__BUILD_TIME__: JSON.stringify(now),
|
||||||
|
|
Loading…
Reference in a new issue