From dffe3cf8f2e28803ef0f59a95ff158a6397448a1 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Thu, 5 Aug 2021 18:20:34 +0800 Subject: [PATCH] Revert "try to support subdirectory reverse proxy" This reverts commit a03dd91e40dc485ff95f635858760162f80f4372. --- index.html | 14 +++++++------- server/server.js | 2 +- vite.config.js | 21 ++++++++++----------- 3 files changed, 18 insertions(+), 19 deletions(-) diff --git a/index.html b/index.html index 74dde4db..66d58c1e 100644 --- a/index.html +++ b/index.html @@ -1,16 +1,16 @@ - + - + Uptime Kuma - - -
- - + + +
+ + diff --git a/server/server.js b/server/server.js index 8958aeb4..daaf9555 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 05a91d19..f93fb026 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'] + }) + ] })