diff --git a/.gitea/workflows/deploy-socialize.yml b/.gitea/workflows/deploy-socialize.yml index 3c46658..4970f80 100644 --- a/.gitea/workflows/deploy-socialize.yml +++ b/.gitea/workflows/deploy-socialize.yml @@ -26,7 +26,7 @@ jobs: -t git.mapachotes.com/jbourdon/socialize-api:latest \ -f backend/src/Socialize.Api/Dockerfile . docker build \ - --build-arg VITE_API_URL=/api \ + --build-arg VITE_API_URL=/ \ -t git.mapachotes.com/jbourdon/socialize-web:${{ gitea.sha }} \ -t git.mapachotes.com/jbourdon/socialize-web:latest \ -f frontend/Dockerfile . diff --git a/frontend/.env.production b/frontend/.env.production index 1847eff..6119751 100644 --- a/frontend/.env.production +++ b/frontend/.env.production @@ -1,4 +1,4 @@ -VITE_API_URL=/api +VITE_API_URL=/ VITE_STRIPE_API_KEY=51OoveVDrRyqXtNdBAxIo183PujtqFyU0xUMK9YNtIijcHeDlcLN6pqkZWHbgaBA0FHrwLMSoy3yVLN33NX8ExOxL00MSZwgJN7 VITE_GOOGLE_CLIENT_ID=213344094492-7c83lqoh7mnjgadpeqo2lcs1krhbsnnd.apps.googleusercontent.com VITE_FACEBOOK_APP_ID=1076433907621883 diff --git a/frontend/Dockerfile b/frontend/Dockerfile index e3ccced..7a02132 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,7 +1,7 @@ FROM node:22-alpine AS build WORKDIR /app -ARG VITE_API_URL=/api +ARG VITE_API_URL=/ ENV VITE_API_URL=$VITE_API_URL COPY frontend/package*.json ./