diff --git a/helpers/api.js b/helpers/api.js
index <HASH>..<HASH> 100644
--- a/helpers/api.js
+++ b/helpers/api.js
@@ -1,5 +1,5 @@
 exports.getBaseUrl = () => {
-  // If DDENV is defined, use it, otherwise default to prod
-  const env = process.env.DDENV ? "_" + process.env.DDENV : "";
-  return `https://api${env}.dronedeploy.com`
+  const env = process.env.DDENV || "prod";  // default to prod
+  const envUrlPart = env === "prod" ? "" : "_" + env;
+  return `https://api${envUrlPart}.dronedeploy.com`
 }
Minor adjustment for when env is explicitly prod