diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 0811faa..1f932c8 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -23,13 +23,13 @@ jobs: cache: 'npm' - name: Copy environment file - run: cp config/env-poweron-nyla-int.env .env + run: cp config/env-porta.env .env - name: Install dependencies run: npm ci - name: Build React app - run: npm run build:int + run: npm run build - name: Deploy to Infomaniak VM env: diff --git a/config/env-porta.env b/config/env-porta.env new file mode 100644 index 0000000..e74971f --- /dev/null +++ b/config/env-porta.env @@ -0,0 +1,6 @@ +# Environment: porta (Forgejo deploy → porta.poweron.swiss) +# Consumed by: Vite build + SPA runtime (getApiBaseUrl / getAppName) +# Auth and secrets live on the gateway — never in frontend env. + +VITE_API_BASE_URL=https://api.porta.swiss +VITE_APP_NAME=PORTA