diff --git a/README.md b/README.md index 074f80e..61e2bc5 100644 --- a/README.md +++ b/README.md @@ -51,8 +51,6 @@ Next, lets configure the development server. To keep things simple we can put th var hypernova = require('hypernova/server'); hypernova({ - clustering: false, - getComponent(name) { if (name === 'MyComponent.js') { return require('./app/assets/javascripts/MyComponent.js'); @@ -207,8 +205,8 @@ Options, and their defaults bodyParser: { limit: 1024 * 1000, }, - // disables cluster mode and reloads each component every time it is requested - clustering: true, + // disables cluster mode + enableCluster: false, // how components will be retrieved, getComponent: undefined, // configure the logger diff --git a/examples/simple/hypernova.js b/examples/simple/hypernova.js index 1e2e2bf..31e97af 100644 --- a/examples/simple/hypernova.js +++ b/examples/simple/hypernova.js @@ -1,7 +1,7 @@ const hypernova = require('hypernova/server'); hypernova({ - clustering: false, + enableCluster: false, // default getComponent(name) { if (name === 'MyComponent.js') { diff --git a/test/server-test.js b/test/server-test.js index 2313f47..4b5fd8f 100644 --- a/test/server-test.js +++ b/test/server-test.js @@ -7,6 +7,6 @@ describe('Hypernova server', () => { }); it('starts up the hypernova server without blowing up', () => { - hypernova({ clustering: false, getComponent: () => {} }); + hypernova({ getComponent: () => {} }); }); });