Better Implementarion of Env Variables
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
export const environment = {
|
||||
production: true,
|
||||
backendPath: 'https://api.hideyoshi.com.br',
|
||||
backendOAuthPath: 'https://api.hideyoshi.com.br'
|
||||
backendPath: process.env['BACKEND_URL'],
|
||||
backendOAuthPath: process.env['BACKEND_OAUTH_URL']
|
||||
};
|
||||
|
||||
11
src/webpack.config.ts
Normal file
11
src/webpack.config.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { EnvironmentPlugin } from 'webpack'
|
||||
|
||||
|
||||
module.exports = {
|
||||
plugins: [
|
||||
new EnvironmentPlugin({
|
||||
'BACKEND_URL': 'https://api.hideyoshi.com.br',
|
||||
'BACKEND_OAUTH_URL': 'https://api.hideyoshi.com.br'
|
||||
})
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user