diff --git a/index.html b/index.html index 74dde4db0..66d58c1e6 100644 --- a/index.html +++ b/index.html @@ -1,16 +1,16 @@ - + - + Uptime Kuma - - -
- - + + +
+ + diff --git a/server/server.js b/server/server.js index 8958aeb4d..daaf9555a 100644 --- a/server/server.js +++ b/server/server.js @@ -87,7 +87,7 @@ let indexHTML = fs.readFileSync("./dist/index.html").toString(); // Normal Router here - app.use(express.static("dist")); + app.use("/", express.static("dist")); // Basic Auth Router here diff --git a/vite.config.js b/vite.config.js index 05a91d199..f93fb0269 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,15 +1,14 @@ -import { defineConfig } from "vite" -import vue from "@vitejs/plugin-vue" -import legacy from "@vitejs/plugin-legacy" +import { defineConfig } from 'vite' +import vue from '@vitejs/plugin-vue' +import legacy from '@vitejs/plugin-legacy' // https://vitejs.dev/config/ export default defineConfig({ - base: "./", - plugins: [ - vue(), - legacy({ - targets: ["ie > 11"], - additionalLegacyPolyfills: ["regenerator-runtime/runtime"] - }) - ] + plugins: [ + vue(), + legacy({ + targets: ['ie > 11'], + additionalLegacyPolyfills: ['regenerator-runtime/runtime'] + }) + ] })