@vida-global/core 1.1.6 → 1.1.8

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.
@@ -1,9 +1,11 @@
1
1
  const pino = require('pino');
2
2
 
3
- const config = {};
3
+ const config = {
4
+ level: process.env.LOG_LEVEL || 'info'
5
+ };
6
+
4
7
  if (!process.env.ENV_VERCEL) {
5
8
  config.transport = {
6
- level: process.env.LOG_LEVEL ? 'debug' : 'info',
7
9
  target: 'pino-pretty',
8
10
  options: {
9
11
  colorize: true,
@@ -158,7 +158,7 @@ class VidaServer {
158
158
  }
159
159
 
160
160
 
161
- viewsDirectory() {
161
+ get viewsDirectory() {
162
162
  return `${process.cwd()}/views`;
163
163
  }
164
164
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vida-global/core",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "Core libraries for supporting Vida development",
5
5
  "author": "",
6
6
  "license": "ISC",