Better Implementarion of Env Variables

This commit is contained in:
2023-02-06 05:54:57 -03:00
parent 1f60e0408c
commit cd0e6bd8e5
7 changed files with 487 additions and 97 deletions

View File

@@ -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
View 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'
})
]
}