From 67e1e77de22e9dbb3d4e71a3cd2550c15b7c77f7 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Thu, 9 Jul 2020 11:21:42 +0100 Subject: [PATCH] tidy up --- packages/server/src/api/controllers/static.js | 2 +- packages/server/src/index.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/server/src/api/controllers/static.js b/packages/server/src/api/controllers/static.js index 25f80a4862..1b9e49f9e0 100644 --- a/packages/server/src/api/controllers/static.js +++ b/packages/server/src/api/controllers/static.js @@ -49,7 +49,7 @@ exports.serveApp = async function(ctx) { }) } - if (!process.env.CLOUD) { + if (process.env.CLOUD) { const S3_URL = `https://${appId}.app.budi.live/assets/${appId}/${mainOrAuth}/${ctx.file || "index.production.html"}` diff --git a/packages/server/src/index.js b/packages/server/src/index.js index 9fef9652da..9b4c323104 100644 --- a/packages/server/src/index.js +++ b/packages/server/src/index.js @@ -2,7 +2,6 @@ const { resolve } = require("path") async function runServer() { const budibaseDir = "~/.budibase" - require("dotenv").config() process.env.BUDIBASE_DIR = resolve(budibaseDir)