0.9.2 • Published 1 year ago
@morfeo/next v0.9.2
@morfeo/next
@morfeo/next expose a function to easily integrate morfeo with next.js.
Documentation | API | Contributing |
Installation
# With npm
npm install @morfeo/next
# With yarn
yarn add @morfeo/next
Once the package is installed you can wrap your next configuration with the withMorfeo
utility function,
this function will automatically inject all the needed configurations to run morfeo at build-time in your next.js application.
next.config.js
const { withMorfeo } = require("@morfeo/next");
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
/* config options here */
}
module.exports = withMorfeo(nextConfig)