feat: update environment configurations and improve Docker health checks
This commit is contained in:
@@ -3,6 +3,7 @@ import {catchError, map, of, switchMap, tap} from 'rxjs';
|
|||||||
import {Credentials} from '../interfaces/credentials';
|
import {Credentials} from '../interfaces/credentials';
|
||||||
import {HttpClient} from '@angular/common/http';
|
import {HttpClient} from '@angular/common/http';
|
||||||
import {User} from '../interfaces/user';
|
import {User} from '../interfaces/user';
|
||||||
|
import {environment} from '../../environments/environment';
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
providedIn: 'root'
|
providedIn: 'root'
|
||||||
@@ -10,7 +11,7 @@ import {User} from '../interfaces/user';
|
|||||||
export class AuthService {
|
export class AuthService {
|
||||||
|
|
||||||
private readonly http = inject(HttpClient);
|
private readonly http = inject(HttpClient);
|
||||||
private readonly BASE_URL = 'http://localhost:3000/api/auth';
|
private readonly BASE_URL = `${environment.apiUrl}/auth`;
|
||||||
|
|
||||||
readonly user = signal<User | null>(null);
|
readonly user = signal<User | null>(null);
|
||||||
private readonly accessToken = signal<string | null>(null);
|
private readonly accessToken = signal<string | null>(null);
|
||||||
|
|||||||
4
client/src/environments/environment.prod.ts
Normal file
4
client/src/environments/environment.prod.ts
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
export const environment = {
|
||||||
|
production: true,
|
||||||
|
apiUrl: 'https://dev.unifihomenetwork.com/gameovergne-api'
|
||||||
|
};
|
||||||
4
client/src/environments/environment.ts
Normal file
4
client/src/environments/environment.ts
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
export const environment = {
|
||||||
|
production: false,
|
||||||
|
apiUrl: 'http://localhost:3000/api'
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user