File tree 3 files changed +7
-1
lines changed
3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,9 @@ function getClientEnvironment(publicUrl) {
85
85
WDS_SOCKET_HOST : process . env . WDS_SOCKET_HOST ,
86
86
WDS_SOCKET_PATH : process . env . WDS_SOCKET_PATH ,
87
87
WDS_SOCKET_PORT : process . env . WDS_SOCKET_PORT ,
88
+
89
+ // Application version.
90
+ VERSION : paths . appVersion
88
91
}
89
92
) ;
90
93
// Stringify all values so we can feed into webpack DefinePlugin
Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ const resolveModule = (resolveFn, filePath) => {
48
48
return resolveFn ( `${ filePath } .js` ) ;
49
49
} ;
50
50
51
+ const appVersion = require ( resolveApp ( 'package.json' ) ) . version ;
52
+
51
53
// config after eject: we're in ./config/
52
54
module . exports = {
53
55
dotenv : resolveApp ( '.env' ) ,
@@ -65,6 +67,7 @@ module.exports = {
65
67
proxySetup : resolveApp ( 'src/setupProxy.js' ) ,
66
68
appNodeModules : resolveApp ( 'node_modules' ) ,
67
69
publicUrlOrPath,
70
+ appVersion
68
71
} ;
69
72
70
73
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ export default function Sidebar({ dashboardContentRef }) {
28
28
* @returns {React.JSX }
29
29
*/
30
30
function SidebarFooterVersion ( ) {
31
- const { REACT_APP_VERSION : VERSION } = process . env ;
31
+ const { VERSION } = process . env ;
32
32
33
33
if ( ! VERSION ) {
34
34
return null ;
You can’t perform that action at this time.
0 commit comments