adding env variables and morgan and sentry

This commit is contained in:
talksik
2022-06-03 13:30:06 -07:00
parent da5861086e
commit 6eb8092864
7 changed files with 151 additions and 37 deletions
+27
View File
@@ -0,0 +1,27 @@
interface EnvironmentConfig {
MONGO_CONNECTION_STRING: string;
JWT_TOKEN_SECRET: string;
GOOGLE_AUTH_CLIENT_ID: string;
}
// keep private
const getEnvironmentVariables = (): EnvironmentConfig => {
// TODO
if (process.env.NODE_ENV === 'production') {
//
}
if (process.env.NODE_ENV === 'development') {
//
}
return {
GOOGLE_AUTH_CLIENT_ID:
'423533244953-banligobgbof8hg89i6cr1l7u0p7c2pk.apps.googleusercontent.com',
JWT_TOKEN_SECRET: 'afajdslfwk1@lkkasdfl21ASDF!2',
MONGO_CONNECTION_STRING:
'mongodb+srv://default:[email protected]/default?retryWrites=true&w=majority',
};
};
export const environmentVariables: EnvironmentConfig = getEnvironmentVariables();