diff --git a/src/dashboard.py b/src/dashboard.py index f94ef362..b9607b70 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -1462,7 +1462,7 @@ DashboardPlugin: DashboardPlugins = DashboardPlugins(app, WireguardConfiguration InitWireguardConfigurationsList(startup=True) - +app.static_url_path = f'{APP_PREFIX}/static' with app.app_context(): DashboardClients: DashboardClients = DashboardClients(WireguardConfigurations) app.register_blueprint(createClientBlueprint(WireguardConfigurations, DashboardConfig, DashboardClients)) diff --git a/src/static/app/index.html b/src/static/app/index.html index 8d0f9b4d..0c731866 100644 --- a/src/static/app/index.html +++ b/src/static/app/index.html @@ -10,31 +10,6 @@ WGDashboard -
diff --git a/src/static/app/vite.config.js b/src/static/app/vite.config.js index ca013f84..69f7b0b9 100644 --- a/src/static/app/vite.config.js +++ b/src/static/app/vite.config.js @@ -32,10 +32,7 @@ export default defineConfig(({mode}) => { } return { - base: "/", - define: { - __RUNTIME_BASE_DETECTION__: true - }, + base: "/static/app/dist", plugins: [ vue(), ],