Snai3i-LandingPage-FormBuilder / backend / src / config / env.ts
env.ts
Raw
import 'dotenv/config';

// export const ORIGINS = ;
export const InDev = process.env.NODE_ENV === 'development';
export const PORT = process.env.PORT || 8000;
export const CLIENT_URL: string =
  process.env.CLIENT_URL || 'http://localhost:8000';
export const dbUrl: string = process.env.MONGODB_URI || '';
export const dbName: string = process.env.MONGODB_NAME || '';
export const JwtSecret: string = process.env.JWT_SECRET || '';
export const ORIGINS: string = process.env.CORPS_ORIGINS || '';