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: {