Skip to content

Commit e419c1b

Browse files
added comment for clarity, no reuse of var (#150)
1 parent eb09d0c commit e419c1b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/lib/run-dev.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@ async function runDev (runOptions, config, _inprocHookRunner) {
9191

9292
let actionUrls = {}
9393
if (hasBackend) {
94-
actionUrls = rtLib.utils.getActionUrls(devConfig, true /* isRemoteDev */, false /* isLocalDev */, false /* legacy */)
95-
actionUrls = Object.entries(actionUrls).reduce((acc, [key, value]) => {
94+
// note: 3rd arg, _isLocalDev is not used in RuntimeLib
95+
// there is no such thing as --local anymore
96+
const tempActionUrls = rtLib.utils.getActionUrls(devConfig, true /* isRemoteDev */, false /* isLocalDev */, false /* legacy */)
97+
actionUrls = Object.entries(tempActionUrls).reduce((acc, [key, value]) => {
9698
const url = new URL(value)
9799
url.port = serverPort
98100
url.hostname = SERVER_HOST

0 commit comments

Comments
 (0)