File tree Expand file tree Collapse file tree 2 files changed +3
-13
lines changed
packages/react-scripts/scripts Expand file tree Collapse file tree 2 files changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ checkBrowsers(paths.appPath, isInteractive)
110110 console . log ( ) ;
111111
112112 const appPackage = require ( paths . appPackageJson ) ;
113- const publicUrl = paths . publicUrlOrPath ;
113+ const publicUrl = paths . publicUrl ;
114114 const publicPath = config . output . publicPath ;
115115 const buildFolder = path . relative ( process . cwd ( ) , paths . appBuild ) ;
116116 printHostingInstructions (
Original file line number Diff line number Diff line change @@ -91,18 +91,12 @@ checkBrowsers(paths.appPath, isInteractive)
9191 // We have not found a port.
9292 return ;
9393 }
94-
9594 const config = configFactory ( 'development' ) ;
9695 const protocol = process . env . HTTPS === 'true' ? 'https' : 'http' ;
9796 const appName = require ( paths . appPackageJson ) . name ;
9897 const useTypeScript = fs . existsSync ( paths . appTsConfig ) ;
9998 const tscCompileOnError = process . env . TSC_COMPILE_ON_ERROR === 'true' ;
100- const urls = prepareUrls (
101- protocol ,
102- HOST ,
103- port ,
104- paths . publicUrlOrPath . slice ( 0 , - 1 )
105- ) ;
99+ const urls = prepareUrls ( protocol , HOST , port ) ;
106100 const devSocket = {
107101 warnings : warnings =>
108102 devServer . sockWrite ( devServer . sockets , 'warnings' , warnings ) ,
@@ -122,11 +116,7 @@ checkBrowsers(paths.appPath, isInteractive)
122116 } ) ;
123117 // Load proxy config
124118 const proxySetting = require ( paths . appPackageJson ) . proxy ;
125- const proxyConfig = prepareProxy (
126- proxySetting ,
127- paths . appPublic ,
128- paths . publicUrlOrPath
129- ) ;
119+ const proxyConfig = prepareProxy ( proxySetting , paths . appPublic ) ;
130120 // Serve webpack assets generated by the compiler over a web server.
131121 const serverConfig = createDevServerConfig (
132122 proxyConfig ,
You can’t perform that action at this time.
0 commit comments