minimonolith 0.19.0 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/package.json +1 -1
- package/src/logger/logger.js +1 -1
package/README.md
CHANGED
|
@@ -137,6 +137,11 @@ MM_API_PROD_ENV=FALSE
|
|
|
137
137
|
[...]
|
|
138
138
|
```
|
|
139
139
|
|
|
140
|
+
*NOTICE*: If this variables are not added to .env/Lambda environment it is assumed standard PROD environment (DEV=FLASE & PROD=TRUE)
|
|
141
|
+
- This means that sequelize will not alter automatically tables having mismatches with defined model.js files
|
|
142
|
+
- Database dialect/credentials detected will not be printed
|
|
143
|
+
- Critical errors will not make the app crash
|
|
144
|
+
|
|
140
145
|
## Database Authentication
|
|
141
146
|
|
|
142
147
|
To set up authentication for the database, you need to provide the necessary environment variables in a `.env` file. Depending on the database dialect the required variables will differ.
|
package/package.json
CHANGED
package/src/logger/logger.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export default {
|
|
2
2
|
error: (...ERROR) => { console.error(...ERROR) },
|
|
3
3
|
log: (...MESSAGE) => { console.log(...MESSAGE) },
|
|
4
|
-
qa: (...MESSAGE) => { if (process.env.MM_API_PROD_ENV
|
|
4
|
+
qa: (...MESSAGE) => { if (process.env.MM_API_PROD_ENV==='FALSE') console.log(...MESSAGE) }
|
|
5
5
|
};
|