0.5.13 • Published 3 years ago

@goldpage/hapi v0.5.13

Weekly downloads
14
License
-
Repository
github
Last release
3 years ago

Goldpage + Hapi = :heart:

@goldpage/hapi

Use Goldpage with Hapi.

Usage

Install @goldpage/hapi.

$ npm install @goldpage/hapi

The plugin is automatically loaded and a Hapi plugin is now available at require('goldpage').hapi.

Example

// ./example/server.js

const Hapi = require('hapi');
const ssr = require('goldpage');

startServer();

async function startServer() {
  const server = Hapi.Server({
    port: process.env.PORT || 3000,
    debug: {request: ['internal']},
  });

  await server.register(ssr.hapi);

  await server.start();

  console.log('Server running');
}
0.5.12

3 years ago

0.5.13

3 years ago

0.5.11

4 years ago

0.5.10

4 years ago

0.5.9

4 years ago

0.5.8

4 years ago

0.5.7

4 years ago

0.5.6

4 years ago

0.5.5

5 years ago

0.5.4

5 years ago

0.5.3

5 years ago

0.5.2

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago