fix: wrong backend on porta instance

This commit is contained in:
Ida 2026-05-22 07:52:06 +02:00
parent 12a9b6d0b8
commit b51f6b64db
2 changed files with 8 additions and 2 deletions

View file

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

6
config/env-porta.env Normal file
View file

@ -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