@budibase/worker 2.1.17 → 2.1.19-alpha.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/worker",
3
3
  "email": "hi@budibase.com",
4
- "version": "2.1.17",
4
+ "version": "2.1.19-alpha.0",
5
5
  "description": "Budibase background service",
6
6
  "main": "src/index.ts",
7
7
  "repository": {
@@ -36,10 +36,10 @@
36
36
  "author": "Budibase",
37
37
  "license": "GPL-3.0",
38
38
  "dependencies": {
39
- "@budibase/backend-core": "^2.1.17",
40
- "@budibase/pro": "2.1.16",
41
- "@budibase/string-templates": "^2.1.17",
42
- "@budibase/types": "^2.1.17",
39
+ "@budibase/backend-core": "2.1.19-alpha.0",
40
+ "@budibase/pro": "2.1.18",
41
+ "@budibase/string-templates": "2.1.19-alpha.0",
42
+ "@budibase/types": "2.1.19-alpha.0",
43
43
  "@koa/router": "8.0.8",
44
44
  "@sentry/node": "6.17.7",
45
45
  "@techpass/passport-openidconnect": "0.3.2",
@@ -104,5 +104,5 @@
104
104
  "./scripts/jestSetup.js"
105
105
  ]
106
106
  },
107
- "gitHead": "f13fc9cd82db61af9474e1070071cafefdfed42d"
107
+ "gitHead": "8159f0503b4cfcf1a307ac221ccf5609239be71a"
108
108
  }
@@ -22,8 +22,6 @@ const {
22
22
  const { events } = require("@budibase/backend-core")
23
23
  const { checkAnyUserExists } = require("../../../utilities/users")
24
24
 
25
- const BB_TENANT_CDN = "https://tenants.cdn.budi.live"
26
-
27
25
  const getEventFns = async (db, config) => {
28
26
  const fns = []
29
27
  const type = config.type
@@ -350,7 +348,7 @@ exports.upload = async function (ctx) {
350
348
  if (env.SELF_HOSTED) {
351
349
  url = `/${bucket}/${key}`
352
350
  } else {
353
- url = `${BB_TENANT_CDN}/${key}`
351
+ url = `${env.CDN_URL}/${key}`
354
352
  }
355
353
 
356
354
  cfgStructure.config[`${name}`] = url
@@ -42,6 +42,7 @@ const env = {
42
42
  ACCOUNT_PORTAL_URL: process.env.ACCOUNT_PORTAL_URL,
43
43
  PLATFORM_URL: process.env.PLATFORM_URL,
44
44
  APPS_URL: process.env.APPS_URL,
45
+ CDN_URL: process.env.CDN_URL || "https://tenants.cdn.budi.live",
45
46
  // ports
46
47
  // prefer worker port to generic port
47
48
  PORT: process.env.WORKER_PORT || process.env.PORT,