updated base url again

This commit is contained in:
idittrich-valueon 2025-06-16 10:20:49 +02:00
parent 970147816e
commit 5b21a3bfce
2 changed files with 11 additions and 1 deletions

View file

@ -18,6 +18,16 @@ jobs:
node-version: '18' node-version: '18'
cache: 'npm' cache: 'npm'
- name: Create production environment file
run: |
echo 'VITE_API_BASE_URL="https://gateway-int.poweron-center.net"' > .env.production
echo 'VITE_MICROSOFT_CLIENT_ID="24cd6c8a-b592-4905-a5ba-d5fa9f911154"' >> .env.production
echo 'VITE_MICROSOFT_TENANT_ID="6a51aaeb-2467-4186-9504-2a05aedc591f"' >> .env.production
echo 'VITE_ENTRA_CLIENT_SECRET="2iw8Q~jwqG1iacxHopBt5pstu6R45UC1gIQabcbD"' >> .env.production
echo 'VITE_ENTRA_AUTHORITY="https://login.microsoftonline.com/6a51aaeb-2467-4186-9504-2a05aedc591f"' >> .env.production
echo 'VITE_ENTRA_REDIRECT_PATH="/auth/callback/"' >> .env.production
echo 'VITE_ENTRA_REDIRECT_URI="https://gateway-int.poweron-center.net/api/msft/auth/callback/"' >> .env.production
- name: npm install, build - name: npm install, build
run: | run: |
npm ci npm ci

View file

@ -32,7 +32,7 @@ export function useAuth() {
// Create a custom axios instance for this request // Create a custom axios instance for this request
const instance = axios.create({ const instance = axios.create({
baseURL: 'https://gateway.poweron-center.net', baseURL: import.meta.env.VITE_API_BASE_URL,
withCredentials: true, withCredentials: true,
headers: { headers: {
'Content-Type': 'application/x-www-form-urlencoded' 'Content-Type': 'application/x-www-form-urlencoded'