-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
Blog-Post/server/database/config/connections.js
Lines 6 to 9 in ce45315
| if (process.env.NODE_ENV === 'dev') dbUrl = process.env.DB_URL; | |
| else if (process.env.NODE_ENV === 'production') { | |
| dbUrl = process.env.DATABASE_URL; | |
| } else if (process.env.NODE_ENV === 'test') dbUrl = process.env.DB_URL_test; |
I think this is somehow buggy, why not open a {} for else/else if blocks, or maybe we can switch to switch which has a cleaner syntax over complicated if-else statements.
Reactions are currently unavailable