feat(ci): add CI environment configuration and replace URL

This commit is contained in:
Jan Gleytenhoover 2025-01-17 10:41:01 +01:00
parent aceb2e953c
commit 17f20461f8
Signed by: jank
GPG key ID: 50620ADD22CD330B
4 changed files with 18 additions and 1 deletions

View file

@ -52,6 +52,14 @@
"optimization": false,
"extractLicenses": false,
"sourceMap": true
},
"pipeline": {
"fileReplacements": [
{
"replace": "src/app/environments/environment.ts",
"with": "src/app/environments/environment.ci.ts"
}
]
}
},
"defaultConfiguration": "production"

View file

@ -0,0 +1,4 @@
export class Environment {
public static readonly BASE_URL = "http://employee:8089";
}

View file

@ -0,0 +1,4 @@
export class Environment {
public static readonly BASE_URL = "http://localhost:8089";
}

View file

@ -4,6 +4,7 @@ import { EmployeesForAQualificationDTO, QualificationGetDTO, QualificationPostDT
import { Observable } from "rxjs";
import { EmployeeNameDataDTO } from "../models/mitarbeiter";
import { EmployeeService } from "./employee.service";
import { Environment } from "../environments/environment";
@Injectable({
providedIn: 'root'
@ -19,7 +20,7 @@ export class SkillService {
this.http.delete(`${SkillService.BASE_URL}/qualifications/${id}`).subscribe();
}
public static readonly BASE_URL = "http://employee:8089";
public static readonly BASE_URL = Environment.BASE_URL;
getToPutDto(skill: QualificationGetDTO): QualificationPostDTO {
return {