MCPcopy
hub / github.com/wdjungst/react-project / start

Function start

modules/start.js:18–30  ·  view source on GitHub ↗
(cb)

Source from the content-addressed store, hash-verified

16}
17
18export default function start(cb) {
19 validateEnv()
20 if (PROD) {
21 logDXStartWarning()
22 } else {
23 checkDependencies()
24 build(() => {
25 const appServerPath = path.join(process.cwd(), '.build', 'server.js')
26 require(appServerPath)
27 runDevServer(cb)
28 })
29 }
30}
31
32function validateEnv() {
33 if (!PROD && AUTO_RELOAD === 'hot' && SERVER_RENDERING) {

Callers

nothing calls this directly

Calls 5

logDXStartWarningFunction · 0.85
checkDependenciesFunction · 0.85
buildFunction · 0.85
runDevServerFunction · 0.85
validateEnvFunction · 0.70

Tested by

no test coverage detected