@blockrun/clawrouter 0.12.183 → 0.12.184

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -82256,6 +82256,10 @@ function injectModelsConfig(logger) {
82256
82256
  );
82257
82257
  }
82258
82258
  if (needsWrite) {
82259
+ if (!isGatewayMode()) {
82260
+ logger.info("Deferring config write to first gateway start (outside gateway mode)");
82261
+ return;
82262
+ }
82259
82263
  try {
82260
82264
  const tmpPath = `${configPath}.tmp.${process.pid}`;
82261
82265
  writeFileSync3(tmpPath, JSON.stringify(config, null, 2));