updated base url again
This commit is contained in:
parent
970147816e
commit
5b21a3bfce
2 changed files with 11 additions and 1 deletions
10
.github/workflows/int_poweron-nyla-int.yml
vendored
10
.github/workflows/int_poweron-nyla-int.yml
vendored
|
|
@ -18,6 +18,16 @@ jobs:
|
|||
node-version: '18'
|
||||
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
|
||||
run: |
|
||||
npm ci
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ export function useAuth() {
|
|||
|
||||
// Create a custom axios instance for this request
|
||||
const instance = axios.create({
|
||||
baseURL: 'https://gateway.poweron-center.net',
|
||||
baseURL: import.meta.env.VITE_API_BASE_URL,
|
||||
withCredentials: true,
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
|
|
|
|||
Loading…
Reference in a new issue