adding more stuff and having more production

This commit is contained in:
talksik
2022-06-08 06:03:07 -05:00
parent 82db26e994
commit 9bf2507cdc
12 changed files with 245 additions and 96 deletions
+28
View File
@@ -0,0 +1,28 @@
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',
};
};
const environmentVariables: EnvironmentConfig = getEnvironmentVariables();
export default environmentVariables;