nuxt-community / Hapi Nuxt
Licence: mit
Nuxt.js plugin for Hapi.js
Stars: ✭ 46
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
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
Hapi React Hot Loader Example
Simple React Hot Loading example with Hapi Server-side rendering
Stars: ✭ 44 (-4.35%)
Mutual labels: hapi, 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
Vuecnodejs
⚽️🎉Vue初/中级项目,CnodeJS社区重构。( a junior project of Vue.js, rewrite cnodejs.org ) 预览(DEMO):
Stars: ✭ 705 (+1432.61%)
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
Hapi Plugin for Nuxt.js
IMPORTANT: This plugin is compatible with Hapi >= 17
Setup
- Add
@nuxtjs/hapi
dependency to your project
yarn add @nuxtjs/hapi # or npm install @nuxtjs/hapi
- 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 variableNODE_ENV
isproduction
)
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)
nuxt
and builder
instances
Access 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
- Clone this repository
- Install dependencies using
yarn install
ornpm install
- Start development server using
npm run dev
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].