You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
console.log('The project was built assuming it is hosted at '+chalk.green(publicPath)+'.');
161
-
console.log('You can control this with the '+chalk.green('homepage')+' field in your '+chalk.cyan('package.json')+'.');
162
+
console.log('The project was built assuming it is hosted at '+chalk.green(publicPathname)+'.');
163
+
console.log('You can control this with the '+chalk.green('homepage')+' field in your '+chalk.cyan('package.json')+', or with the '+chalk.green('PUBLIC_URL')+' environment variable.');
162
164
console.log();
163
165
console.log('The '+chalk.cyan('build')+' folder is ready to be deployed.');
164
-
console.log('To publish it at '+chalk.green(homepagePath)+', run:');
166
+
console.log('To publish it at '+chalk.green(publicUrl)+', run:');
@@ -184,20 +186,20 @@ function build(previousSizeMap) {
184
186
}elseif(publicPath!=='/'){
185
187
// "homepage": "http://mywebsite.com/project"
186
188
console.log('The project was built assuming it is hosted at '+chalk.green(publicPath)+'.');
187
-
console.log('You can control this with the '+chalk.green('homepage')+' field in your '+chalk.cyan('package.json')+'.');
189
+
console.log('You can control this with the '+chalk.green('homepage')+' field in your '+chalk.cyan('package.json')+', or with the '+chalk.green('PUBLIC_URL')+' environment variable.');
188
190
console.log();
189
191
console.log('The '+chalk.cyan('build')+' folder is ready to be deployed.');
190
192
console.log();
191
193
}else{
192
-
// no homepage or "homepage": "http://mywebsite.com"
193
-
console.log('The project was built assuming it is hosted at the server root.');
194
-
if(homepagePath){
194
+
if(publicUrl){
195
195
// "homepage": "http://mywebsite.com"
196
-
console.log('You can control this with the '+chalk.green('homepage')+' field in your '+chalk.cyan('package.json')+'.');
196
+
console.log('The project was built assuming it is hosted at '+chalk.green(publicUrl)+'.');
197
+
console.log('You can control this with the '+chalk.green('homepage')+' field in your '+chalk.cyan('package.json')+', or with the '+chalk.green('PUBLIC_URL')+' environment variable.');
197
198
console.log();
198
199
}else{
199
200
// no homepage
200
-
console.log('To override this, specify the '+chalk.green('homepage')+' in your '+chalk.cyan('package.json')+'.');
201
+
console.log('The project was built assuming it is hosted at the server root.');
202
+
console.log('To override this, specify the '+chalk.green('homepage')+' in your '+chalk.cyan('package.json')+', or with the '+chalk.green('PUBLIC_URL')+' environment variable.');
201
203
console.log('For example, add this to build it for GitHub Pages:')
0 commit comments