@budibase/backend-core 2.29.16 → 2.29.17

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
@@ -56038,7 +56038,7 @@ var environment = {
56038
56038
  ENCRYPTION_KEY: process.env.ENCRYPTION_KEY,
56039
56039
  API_ENCRYPTION_KEY: getAPIEncryptionKey(),
56040
56040
  COUCH_DB_URL: process.env.COUCH_DB_URL || "http://localhost:4005",
56041
- COUCH_DB_SQL_URL: process.env.COUCH_DB_SQL_URL || "http://localhost:4006",
56041
+ COUCH_DB_SQL_URL: process.env.COUCH_DB_SQL_URL,
56042
56042
  SQS_SEARCH_ENABLE: process.env.SQS_SEARCH_ENABLE,
56043
56043
  SQS_SEARCH_ENABLE_TENANTS: process.env.SQS_SEARCH_ENABLE_TENANTS?.split(",") || [],
56044
56044
  SQS_MIGRATION_ENABLE: process.env.SQS_MIGRATION_ENABLE,
@@ -56225,7 +56225,9 @@ var getCouchInfo = (connection) => {
56225
56225
  }
56226
56226
  const authCookie = Buffer.from(`${username}:${password}`).toString("base64");
56227
56227
  let sqlUrl = environment_default.COUCH_DB_SQL_URL;
56228
- if (!sqlUrl && urlInfo.url) {
56228
+ if (environment_default.isDev() && !sqlUrl) {
56229
+ sqlUrl = "http://localhost:4006";
56230
+ } else if (!sqlUrl && urlInfo.url) {
56229
56231
  const parsed = new URL(urlInfo.url);
56230
56232
  sqlUrl = urlInfo.url.replace(parsed.port, "4984");
56231
56233
  }