diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 4f046b6..06797ad 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,4 +1,5 @@ import { Component } from '@angular/core'; +import { environment } from '../environments/environment'; @Component({ selector: 'app-root', @@ -6,5 +7,5 @@ import { Component } from '@angular/core'; styleUrls: ['./app.component.css'] }) export class AppComponent { - title = 'netlify-env'; + title = environment.title; } diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index 3612073..1add0c8 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -1,3 +1 @@ -export const environment = { - production: true -}; +export const environment = (window as any).env; diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 7b4f817..92dfe7f 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -3,7 +3,8 @@ // The list of file replacements can be found in `angular.json`. export const environment = { - production: false + production: false, + title: 'netlify-env' }; /*