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: