From 1c1f22afe56398909692b01c89254534ac762c00 Mon Sep 17 00:00:00 2001 From: Urban Modig Date: Sun, 12 Oct 2025 22:20:24 +0200 Subject: [PATCH] assets --- .drone.yml | 4 ++-- vite.config.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index be6317e..170e427 100644 --- a/.drone.yml +++ b/.drone.yml @@ -41,8 +41,8 @@ steps: # Build args → styr Vite och proxybas build_args: - - VITE_API_BASE_URL=https://rubble.se/hemhub/api - - VITE_BASE_PATH=/hemhub/app + - VITE_API_BASE_URL=https://rubble.se/hemhub/api/ + - VITE_BASE_PATH=/hemhub/app/ # Taggar (latest + kort SHA) tags: diff --git a/vite.config.ts b/vite.config.ts index 57bd9df..d5d7fd5 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -5,6 +5,7 @@ import tsconfigPaths from 'vite-tsconfig-paths' import { fileURLToPath, URL } from 'node:url' export default defineConfig({ + base: process.env.VITE_BASE_PATH || '/', // sätts i builden plugins: [react(), tsconfigPaths()], resolve: { alias: {