From ac2491f3c53fcea3fde374a91da936a3ec8a9ae8 Mon Sep 17 00:00:00 2001 From: Urban Modig Date: Sun, 12 Oct 2025 21:09:04 +0200 Subject: [PATCH] fix pipeline --- .docker/nginx.conf | 16 ++++++++++++++++ .drone.yml | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 .docker/nginx.conf diff --git a/.docker/nginx.conf b/.docker/nginx.conf new file mode 100644 index 0000000..e81e711 --- /dev/null +++ b/.docker/nginx.conf @@ -0,0 +1,16 @@ +server { + listen 80; + server_name _; + + root /usr/share/nginx/html; + index index.html; + + # gzip för statiska assets + gzip on; + gzip_types text/plain text/css application/javascript application/json image/svg+xml; + + # Single Page App fallback + location / { + try_files $uri /index.html; + } +} diff --git a/.drone.yml b/.drone.yml index d65d7b7..be6317e 100644 --- a/.drone.yml +++ b/.drone.yml @@ -41,8 +41,8 @@ steps: # Build args → styr Vite och proxybas build_args: - - VITE_API_BASE_URL=${VITE_API_BASE_URL} - - VITE_BASE_PATH=/hemhub/ + - VITE_API_BASE_URL=https://rubble.se/hemhub/api + - VITE_BASE_PATH=/hemhub/app # Taggar (latest + kort SHA) tags: