File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 branches : [main, develop]
88
99env :
10+ NG_APP_BACKEND_API_URL : ${{ secrets.BACKEND_API_URL }}
1011 NG_APP_SUPABASE_URL : ${{ secrets.SUPABASE_URL }}
1112 NG_APP_SUPABASE_ANON_KEY : ${{ secrets.SUPABASE_ANON_KEY }}
1213
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { IEnvironment } from '@core/_models/environment/environment.interface';
33export const ENVIRONMENT : IEnvironment = {
44 production : true ,
55 useMocks : false ,
6- apiUrl : 'https ://api.your-domain.com /api',
6+ apiUrl : process . env [ 'NG_APP_BACKEND_API_URL' ] || 'http ://localhost:8000 /api',
77 logLevel : 'error' ,
88 application : {
99 name : 'AngularTemplate' ,
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { IEnvironment } from '@core/_models/environment/environment.interface';
33export const ENVIRONMENT : IEnvironment = {
44 production : false ,
55 useMocks : true ,
6- apiUrl : ' http://localhost:3000 /api',
6+ apiUrl : process . env [ 'NG_APP_BACKEND_API_URL' ] || ' http://localhost:8000 /api',
77 logLevel : 'debug' ,
88 mockAdminPassword : '1234' ,
99 application : {
Original file line number Diff line number Diff line change 11// eslint-disable-next-line @typescript-eslint/naming-convention
22declare const process : {
33 env : {
4+ NG_APP_BACKEND_API_URL : string ;
45 NG_APP_SUPABASE_URL : string ;
56 NG_APP_SUPABASE_ANON_KEY : string ;
67 [ key : string ] : string | undefined ;
You can’t perform that action at this time.
0 commit comments