Changeset View
Changeset View
Standalone View
Standalone View
js_modules/dagit/packages/app/scripts/start.js
Show First 20 Lines • Show All 104 Lines • ▼ Show 20 Lines | const compiler = createCompiler({ | ||||
devSocket, | devSocket, | ||||
urls, | urls, | ||||
useYarn, | useYarn, | ||||
useTypeScript, | useTypeScript, | ||||
tscCompileOnError, | tscCompileOnError, | ||||
webpack, | webpack, | ||||
}); | }); | ||||
// Load proxy config | // Load proxy config | ||||
const proxySetting = require(paths.appPackageJson).proxy; | const proxySetting = process.env.REACT_APP_BACKEND_ORIGIN || require(paths.appPackageJson).proxy; | ||||
const proxyConfig = prepareProxy( | const proxyConfig = prepareProxy( | ||||
proxySetting, | proxySetting, | ||||
paths.appPublic, | paths.appPublic, | ||||
paths.publicUrlOrPath | paths.publicUrlOrPath | ||||
); | ); | ||||
// Serve webpack assets generated by the compiler over a web server. | // Serve webpack assets generated by the compiler over a web server. | ||||
const serverConfig = createDevServerConfig( | const serverConfig = createDevServerConfig( | ||||
proxyConfig, | proxyConfig, | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |