diff --git a/README.md b/README.md index 7d08e1b..24780cc 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ Lead Maintainer - [Devin Ivy](https://github.com/devinivy) **Features** - Supports hapi v17+ + - Setup with [hpal-debug](https://github.com/hapipal/hpal-debug) hapi CLI debugging tools. - Provides conventions for building plugins by mapping the entire hapi plugin API onto files and folders, using [haute-couture](https://github.com/hapipal/haute-couture). - Designed to allow you to deploy your plugin on its own or as part of a larger application. - Textbook integrations with Objection ORM, Swagger UI, and more via [flavors](#flavors). diff --git a/package.json b/package.json index dc9fc31..21a944d 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,8 @@ "eslint-plugin-hapi": "4.x.x", "glue": "5.x.x", "hapi": "17.x.x", - "lab": "15.x.x" + "hpal-debug": "1.x.x", + "lab": "15.x.x", + "toys": "2.x.x" } } diff --git a/server/manifest.js b/server/manifest.js index 263b17d..55c4677 100644 --- a/server/manifest.js +++ b/server/manifest.js @@ -2,6 +2,7 @@ const Dotenv = require('dotenv'); const Confidence = require('confidence'); +const Toys = require('toys'); // Pull .env into process.env Dotenv.config({ path: `${__dirname}/.env` }); @@ -24,6 +25,13 @@ module.exports = new Confidence.Store({ { plugin: '../lib', // Main plugin options: {} + }, + { + plugin: { + $filter: 'NODE_ENV', + $default: 'hpal-debug', + production: Toys.noop + } } ] }