@@ -14,8 +14,8 @@ var path = require('path');
14
14
var fs = require ( 'fs' ) ;
15
15
var url = require ( 'url' ) ;
16
16
17
- // ZEAL: Allow custom build paths via .env config.
18
- var buildPath = process . env . BUILD_PATH || 'build'
17
+ // ZEAL: Allow custom build path via .env config.
18
+ var buildPath = process . env . BUILD_PATH || 'build' ;
19
19
20
20
// Make sure any symlinks in the project folder are resolved:
21
21
// https://github.com/facebookincubator/create-react-app/issues/637
@@ -79,7 +79,7 @@ function getServedPath(appPackageJson) {
79
79
// config after eject: we're in ./config/
80
80
// ZEAL: use `client` instead of `src` for app directory
81
81
module . exports = {
82
- appBuild : resolveApp ( 'build' ) ,
82
+ appBuild : resolveApp ( buildPath ) ,
83
83
appPublic : resolveApp ( 'client/public' ) ,
84
84
appHtml : resolveApp ( 'client/public/index.html' ) ,
85
85
appIndexJs : resolveApp ( 'client/index.js' ) ,
@@ -101,7 +101,7 @@ function resolveOwn(relativePath) {
101
101
// config before eject: we're in ./node_modules/react-scripts/config/
102
102
// ZEAL: use `client` instead of `src` for app directory
103
103
module . exports = {
104
- appPath : resolveApp ( '.' ) ,
104
+ appPath : resolveApp ( buildPath ) ,
105
105
appBuild : resolveApp ( 'build' ) ,
106
106
appPublic : resolveApp ( 'client/public' ) ,
107
107
appHtml : resolveApp ( 'client/public/index.html' ) ,
@@ -128,7 +128,7 @@ if (!reactScriptsLinked && __dirname.indexOf(path.join('packages', 'react-script
128
128
// ZEAL: use `client` instead of `src` for app directory
129
129
module . exports = {
130
130
appPath : resolveApp ( '.' ) ,
131
- appBuild : resolveOwn ( '../../build' ) ,
131
+ appBuild : resolveOwn ( '../../' + buildPath ) ,
132
132
appPublic : resolveOwn ( 'template/client/public' ) ,
133
133
appHtml : resolveOwn ( 'template/client/public/index.html' ) ,
134
134
appIndexJs : resolveOwn ( 'template/client/index.js' ) ,
0 commit comments