feat: update environment configurations and improve Docker health checks

This commit is contained in:
Vincent Guillet
2025-11-20 22:34:19 +01:00
parent 0db746afd3
commit ccd73cd478
3 changed files with 10 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ import {catchError, map, of, switchMap, tap} from 'rxjs';
import {Credentials} from '../interfaces/credentials';
import {HttpClient} from '@angular/common/http';
import {User} from '../interfaces/user';
import {environment} from '../../environments/environment';
@Injectable({
providedIn: 'root'
@@ -10,7 +11,7 @@ import {User} from '../interfaces/user';
export class AuthService {
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);
private readonly accessToken = signal<string | null>(null);