mirror of
https://github.com/elyby/accounts-frontend.git
synced 2024-12-25 22:50:04 +05:30
Remove version definition from the application and pass it on build time
This commit is contained in:
parent
83c72e795d
commit
cb00d0c712
@ -1,5 +1,6 @@
|
||||
module.exports = {
|
||||
version: 'dev',
|
||||
apiHost: 'https://dev.account.ely.by',
|
||||
ga: {id: 'UA-XXXXX-Y'},
|
||||
sentryCdn: 'https://<key>@sentry.io/<project>'
|
||||
sentryCdn: 'https://<key>@sentry.io/<project>',
|
||||
};
|
||||
|
@ -1,6 +1,5 @@
|
||||
{
|
||||
"name": "ely-by-account",
|
||||
"version": "1.1.25-dev",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"author": "ErickSkrauch <erickskrauch@ely.by>",
|
||||
|
@ -118,7 +118,7 @@ const webpackConfig = {
|
||||
'process.env': {
|
||||
NODE_ENV: JSON.stringify(process.env.NODE_ENV),
|
||||
APP_ENV: JSON.stringify(config.environment || process.env.NODE_ENV),
|
||||
__VERSION__: JSON.stringify(packageJson.version),
|
||||
__VERSION__: JSON.stringify(config.version || ''),
|
||||
__DEV__: !isProduction,
|
||||
__TEST__: isTest,
|
||||
__PROD__: isProduction
|
||||
|
Loading…
Reference in New Issue
Block a user