(cb)
| 16 | } |
| 17 | |
| 18 | export 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 | |
| 32 | function validateEnv() { |
| 33 | if (!PROD && AUTO_RELOAD === 'hot' && SERVER_RENDERING) { |
nothing calls this directly
no test coverage detected