@preconstruct/next
v4.0.0
Published
A Next.js plugin to work with preconstruct repos
Downloads
26,689
Readme
@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");