at the end of the day, it was inevitable

This commit is contained in:
Mo Elzubeir
2022-12-09 08:36:26 -06:00
commit 1218570914
1768 changed files with 887087 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import appConfig from '../appConfig.js';
const { appEnv, hubSpotportalID } = appConfig;
// when `npm start` server in local
export const isDevelopment = process.env.NODE_ENV === 'development';
// when `npm run build`
export const isProduction = process.env.NODE_ENV === 'production';
// when run locally or build is generated for corresponding sites
export const isLive = appEnv === 'live';
export const isStaging = appEnv === 'staging';
export const isLocal = appEnv === 'local';
export const errorConstants = {
'Bad credentials.': 'badCredentials'
};
export const hubspotBaseURL = `https://api.hsforms.com/submissions/v3/integration/submit/${hubSpotportalID}`;