generator-ngx-rocket
Version:
Extensible Angular 13+ enterprise-grade project generator based on angular-cli with best practices from the community. Includes PWA/Cordova/Electron support, coding guides and more!
16 lines (14 loc) • 833 B
text/typescript
// `.env.ts` is generated by the `npm run env` command
// `npm run env` exposes environment variables as JSON for any usage you might
// want, like displaying the version or getting extra config from your CI bot, etc.
// This is useful for granularity you might need beyond just the environment.
// Note that as usual, any environment variables you expose through it will end up in your
// bundle, and you should not use it for any sensitive information like passwords or keys.
import { env } from './.env';
export const environment = {
production: true,
version: env['npm_package_version'],
serverUrl: 'https://api.chucknorris.io',
defaultLanguage: '<%= props.languages.includes('en-US') ? 'en-US' : props.languages[0] %>',
supportedLanguages: [<%- (props['languages']).map(language => `'${language}'`).join(', ') %>]
};