Enable esx
in your Next.js project
Experimental
npm install --save next-esx
or
yarn add next-esx
// 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
}
})
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"
MIT