We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd2469e commit 767aa18Copy full SHA for 767aa18
packages/react-dev-utils/printHostingInstructions.js
@@ -22,7 +22,9 @@ function printHostingInstructions(
22
if (publicUrl && publicUrl.includes('.github.io/')) {
23
// "homepage": "http://user.github.io/project"
24
const publicPathname = url.parse(publicPath).pathname;
25
- const hasDeployScript = typeof appPackage.scripts.deploy !== 'undefined';
+ const hasDeployScript =
26
+ typeof appPackage.scripts !== 'undefined' &&
27
+ typeof appPackage.scripts.deploy !== 'undefined';
28
printBaseMessage(buildFolder, publicPathname);
29
30
printDeployInstructions(publicUrl, hasDeployScript, useYarn);
0 commit comments