I have an env .file
export const environment = { token: '123' };
and how i use it:
export class FlightSelectionService {
// constructor
constructor(private http: HttpClient) {}
// env variables
token = environment.token;
headers = new HttpHeaders()
.set('Accept', 'application/vnd.amadeus+json')
.set('Authorization', `Bearer ${this.token}`);
// rxjs varibales
responseData$: Observable<any> | undefined;
loadData: boolean = false;
the real key is stored in env variables on netlify but it doesnt get changed. I set the value during deployment, but it doesnt work. Why?