diff --git a/src/commands/app/build.js b/src/commands/app/build.js index 1b3b4b50..3e07c0d9 100644 --- a/src/commands/app/build.js +++ b/src/commands/app/build.js @@ -102,6 +102,8 @@ class Build extends BaseCommand { if (flags['web-assets']) { if (config.app.hasFrontend && (flags['force-build'] || !fs.existsSync(config.web.distProd))) { if (config.app.hasBackend) { + // note: 3rd arg, _isLocalDev is not used in RuntimeLib + // there is no such thing as --local anymore const urls = RuntimeLib.utils.getActionUrls(config, false, false, true) await writeConfig(config.web.injectedConfig, urls) } diff --git a/src/lib/app-helper.js b/src/lib/app-helper.js index d31b0e99..ae3bebc2 100644 --- a/src/lib/app-helper.js +++ b/src/lib/app-helper.js @@ -361,6 +361,8 @@ function buildExtensionPointPayloadWoMetadata (extConfigs) { endpointsPayload[extPointName] = {} let actionUrls = {} if (extPointConfig.app.hasBackend) { + // note: 3rd arg, _isLocalDev is not used in RuntimeLib + // there is no such thing as --local anymore actionUrls = RuntimeLib.utils.getActionUrls(extPointConfig, false, false) } Object.entries(extPointConfig.operations) diff --git a/src/lib/run-dev.js b/src/lib/run-dev.js index 5205a89b..a76d8fe1 100644 --- a/src/lib/run-dev.js +++ b/src/lib/run-dev.js @@ -85,7 +85,9 @@ async function runDev (config, dataDir, options = {}, log = () => {}, inprocHook // note the condition: we still write backend urls EVEN if skipActions is set // the urls will always point to remotely deployed actions if skipActions is set log('injecting backend urls into frontend config') - urls = rtLibUtils.getActionUrls(devConfig, true, !skipActions, true) + // note: 3rd arg, _isLocalDev is not used in RuntimeLib + // there is no such thing as --local anymore + urls = rtLibUtils.getActionUrls(devConfig, false, false, true) } utils.writeConfig(devConfig.web.injectedConfig, urls)