Add 404 page

This commit is contained in:
Lim Chee Aun 2024-03-02 13:53:53 +08:00
parent 4d138f5773
commit cef4e6373e
2 changed files with 33 additions and 0 deletions

32
public/404.html Normal file
View 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>

View file

@ -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),