From cef4e6373ef248ac0646283707c91a6a14bb6928 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Sat, 2 Mar 2024 13:53:53 +0800 Subject: [PATCH] Add 404 page --- public/404.html | 32 ++++++++++++++++++++++++++++++++ vite.config.js | 1 + 2 files changed, 33 insertions(+) create mode 100644 public/404.html diff --git a/public/404.html b/public/404.html new file mode 100644 index 0000000..0fcb4e9 --- /dev/null +++ b/public/404.html @@ -0,0 +1,32 @@ + + + + + + Page not found + + + + +

Page not found

+

Go home

+ + diff --git a/vite.config.js b/vite.config.js index d894d28..c24d4d1 100644 --- a/vite.config.js +++ b/vite.config.js @@ -37,6 +37,7 @@ const rollbarCode = fs.readFileSync( export default defineConfig({ base: './', envPrefix: allowedEnvPrefixes, + appType: 'mpa', mode: NODE_ENV, define: { __BUILD_TIME__: JSON.stringify(now),