Set up environment-based configurations for API and builds.
Replaced hardcoded API URLs with environment-specific configurations. Added new environments (development, beta, production) with respective settings. Updated build scripts and Angular file replacements to support environment-based builds.
This commit is contained in:
@@ -4,13 +4,13 @@ import {provideRouter} from '@angular/router';
|
||||
import {routes} from './app/app.routes';
|
||||
import {provideHttpClient} from '@angular/common/http';
|
||||
import {BASE_PATH} from './api';
|
||||
|
||||
import {environment} from './environments/environment';
|
||||
|
||||
bootstrapApplication(AppComponent, {
|
||||
providers: [
|
||||
provideRouter(routes),
|
||||
provideHttpClient(),
|
||||
{provide: BASE_PATH, useValue: 'http://localhost:8080'}
|
||||
{provide: BASE_PATH, useValue: environment.apiUrl}
|
||||
]
|
||||
}).catch(err => console.error(err));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user