This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

hapi-ember-fastboot

0.4.0 • Public • Published

hapi-ember-fastboot

Ember FastBoot handler for hapi.js

For more information about FastBoot, see www.ember-fastboot.com, the underlaying library used for rendering the Ember application to static HTML.

Build Status

Usage

const Hapi = require('hapi');
const Fastboot = require('hapi-ember-fastboot');
 
const server = new Hapi.Server();
server.connection({ port: 3000 });
 
server.register(Fastboot, () => {});
 
server.route({
    method: 'GET',
    path: '/{path*}',
    handler: {
        fastboot: {
            distPath: 'path/to/your/ember/app',
        }
    }
});
 
server.start((err) => {
 
    if (err) {
        throw err;
    }
 
    console.log('Server running at:', server.info.uri);
});

Options

The fastboot handler object has the following properties:

  • distPath absolute path to your distributed Ember application directory.
  • errorHandler an optional error handler to handle any errors thrown by the FastBoot instance. If none given, the handler throws a 500 error by default.

License

MIT, see LICENSE

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Published

Version History

  • Version
    Downloads (Last 7 Days)
    • Published

Package Sidebar

Install

npm i hapi-ember-fastboot

Weekly Downloads

1

Version

0.4.0

License

MIT

Last publish

Collaborators

  • robinvdvleuten