4.0.0 • Published 2 years ago

@preconstruct/next v4.0.0

Weekly downloads
2,471
License
MIT
Repository
github
Last release
2 years ago

@preconstruct/next

A Next.js plugin to make Next sites work with preconstruct dev.

Install

yarn add @preconstruct/next

Usage

Add the plugin to your next.config.js file.

const withPreconstruct = require("@preconstruct/next");

module.exports = withPreconstruct({ ...yourOwnConfig });

Note that in Next.js 12, Next will not read a Babel config from outside of the directory that the Next.js site is in. If you need it to to read your babel config, you will need to do something like this:

// site/babel.config.js
module.exports = require("../babel.config");