Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/commands/app/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 2 additions & 0 deletions src/lib/app-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 3 additions & 1 deletion src/lib/run-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down