Logo
Explore Help
Register Sign In
docker/awesome-compose
1
0
Fork 0
You've already forked awesome-compose
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
be7f09b6ba812faa4dfa6cab79cb163dcc6ea2c0
awesome-compose/react-express-mongodb/backend/config/config.js

12 lines
293 B
JavaScript
Raw Normal View History

react-express-mongodb: lint sources to fix some syntax issues in the existing code, the commit put in place prettier and format the code Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
2020-05-12 15:16:03 +02:00
const env = process.env.NODE_ENV || "development";
Sample React-Express-MongoDB (#59) Signed-off-by: Afzal <sah.afzal@gmail.com>
2020-05-12 00:40:39 +05:00
react-express-mongodb: lint sources to fix some syntax issues in the existing code, the commit put in place prettier and format the code Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
2020-05-12 15:16:03 +02:00
if (env === "development" || env === "test") {
const config = require("./config.json");
const envConfig = config[env];
console.log(envConfig);
Sample React-Express-MongoDB (#59) Signed-off-by: Afzal <sah.afzal@gmail.com>
2020-05-12 00:40:39 +05:00
react-express-mongodb: lint sources to fix some syntax issues in the existing code, the commit put in place prettier and format the code Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
2020-05-12 15:16:03 +02:00
Object.keys(envConfig).forEach((key) => {
process.env[key] = envConfig[key];
});
Sample React-Express-MongoDB (#59) Signed-off-by: Afzal <sah.afzal@gmail.com>
2020-05-12 00:40:39 +05:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 413ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API