Skip to content

esxjs/next-esx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Next.js + ESX

Enable esx in your Next.js project

Status

Experimental

Installation

npm install --save next-esx

or

yarn add next-esx

Configuring Next.js

// next.config.js
const withEsx = require('next-esx')()
module.exports = withEsx()

If you need to set extra config options

// next.config.js
const withEsx = require('next-esx')()
module.exports = withEsx({
  // set more options 
  webpack(config, options) {
    // do extra things
    return config
  }
})

Configuring package.json

Make sure esx is installed:

npm install esx

Change the start script in your package.json from:

  "start": "next start"

To:

  "start": "next-esx start"

License

MIT

About

Next.js plugin and CLI for ESX

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published