All Projects → nuxt-community → Hapi Nuxt

nuxt-community / Hapi Nuxt

Licence: mit
Nuxt.js plugin for Hapi.js

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Hapi Nuxt

Awes Io
Awes.io // boilerplate based on Vue, Nuxt, TailwindCSS plus Laravel as a backend. 🤟
Stars: ✭ 599 (+1202.17%)
Mutual labels:  nuxt, ssr
Virapro.ru
[E-commerce] Plumbing Store
Stars: ✭ 45 (-2.17%)
Mutual labels:  nuxt, ssr
Wemake Vue Template
Bleeding edge vue template focused on code quality and developer happiness.
Stars: ✭ 645 (+1302.17%)
Mutual labels:  nuxt, ssr
Veluxi Starter
Veluxi Vue.js Starter Project with Nuxt JS and Vuetify
Stars: ✭ 39 (-15.22%)
Mutual labels:  nuxt, ssr
Axios Module
Secure and easy axios integration with Nuxt.js
Stars: ✭ 998 (+2069.57%)
Mutual labels:  nuxt, ssr
Nuepress
📖 Nuxt.js + WordPress REST API
Stars: ✭ 524 (+1039.13%)
Mutual labels:  nuxt, ssr
Hackernews
HackerNews clone built with Nuxt.js
Stars: ✭ 758 (+1547.83%)
Mutual labels:  nuxt, ssr
Nuxt Blog
基于Nuxt.js服务器渲染(SSR)搭建的个人博客系统
Stars: ✭ 277 (+502.17%)
Mutual labels:  nuxt, ssr
Hapi React Hot Loader Example
Simple React Hot Loading example with Hapi Server-side rendering
Stars: ✭ 44 (-4.35%)
Mutual labels:  hapi, ssr
Nuxt.js
The Intuitive Vue(2) Framework
Stars: ✭ 38,986 (+84652.17%)
Mutual labels:  nuxt, ssr
Nuxt Firebase Sns Example
Nuxt v2 & Firebase(Hosting / Functions SSR / Firestore), Google Auth SNS Example.
Stars: ✭ 485 (+954.35%)
Mutual labels:  nuxt, ssr
Nuxt Static Render
Nuxt module for SSR without rehydration payload
Stars: ✭ 32 (-30.43%)
Mutual labels:  nuxt, ssr
Vue Slick Carousel
🚥Vue Slick Carousel with True SSR Written for ⚡Faster Luxstay
Stars: ✭ 447 (+871.74%)
Mutual labels:  nuxt, ssr
Sitemap Module
Sitemap Module for Nuxt
Stars: ✭ 539 (+1071.74%)
Mutual labels:  nuxt, ssr
Blog Front
blog-front @nuxt
Stars: ✭ 305 (+563.04%)
Mutual labels:  nuxt, ssr
Vuecnodejs
⚽️🎉Vue初/中级项目,CnodeJS社区重构。( a junior project of Vue.js, rewrite cnodejs.org ) 预览(DEMO):
Stars: ✭ 705 (+1432.61%)
Mutual labels:  nuxt, ssr
N2ex
🌈 V2ex built with Nuxt.js (vue&ssr)
Stars: ✭ 260 (+465.22%)
Mutual labels:  nuxt, ssr
Nuxt Ssr Firebase
Nuxt.js Universal App with SSR via Firebase Functions and Firebase Hosting
Stars: ✭ 273 (+493.48%)
Mutual labels:  nuxt, ssr
Essay
A blog system based on Nuxt.js
Stars: ✭ 913 (+1884.78%)
Mutual labels:  nuxt, ssr
Laravel Nuxt
A Laravel-Nuxt starter kit.
Stars: ✭ 943 (+1950%)
Mutual labels:  nuxt, ssr

Hapi Plugin for Nuxt.js

npm version npm downloads Circle CI Codecov License

Nuxt.js plugin for Hapi.js

IMPORTANT: This plugin is compatible with Hapi >= 17

Setup

  1. Add @nuxtjs/hapi dependency to your project
yarn add @nuxtjs/hapi # or npm install @nuxtjs/hapi
  1. Register it on your server:
const Hapi = require('@hapi/hapi')
const nuxtPlugin = require('@nuxtjs/hapi')

await server.register({
  plugin: nuxtPlugin
  options: {
    // plugin options
  }
}

Options

dev

  • Default: true (false when environment variable NODE_ENV is production)

Automatically starts a Builder allow to hot reload on dev. Should be disabled for production.

overrides

Override nuxt.config

rootDir

  • Default: current working directory

Nuxt app rootDir

edge

  • Default: false

Use nuxt-edge instead of nuxt package if set to true

baseURL

  • Default: /

baseURL for SSR route handler

route

  • Default: { id: 'nuxt.render', auth: false }

Hapi route options for SSR handler

routeMethod

  • Default: *

Hapi route method. (Can be set to GET for more strict handling)

Access nuxt and builder instances

This plugin exposes nuxt and builder (for dev only) instances to hapi.

const server = new Hapi.Server()

await server.register(HapiNuxt)

// Access to nuxt and builder instances using server.plugins.nuxt
const { nuxt, builder } = server.plugins.nuxt

Access Hapi's internals.

The hapi request object is available from nuxtServerInit and the context under res.hapi. Likewise, the hapi response toolkit will be available in res.hapi.

Development

  1. Clone this repository
  2. Install dependencies using yarn install or npm install
  3. Start development server using npm run dev

License

MIT License

Copyright (c) Nuxt Community

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].