# @preconstruct/next

> A Next.js plugin to work with preconstruct repos

Latest version **4.0.0** (published 2022-03-29) · MIT license · 0 weekly downloads

## Install

```sh
npm install @preconstruct/next
pnpm add @preconstruct/next
yarn add @preconstruct/next
bun add @preconstruct/next
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2022-03-29 |
| First published | 2019-09-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1190 |
| Maintainers | mitchellhamilton, preconstruct-release-bot |

## Links

- npm: https://www.npmjs.com/package/@preconstruct/next
- Repository: https://github.com/preconstruct/preconstruct/tree/main/packages/next
- npm.io page: https://npm.io/package/@preconstruct/next

## Recent versions

- 4.0.0 (latest) — 2022-03-29
- 3.0.1 — 2021-11-01
- 3.0.0 — 2021-04-14
- 2.0.2 — 2021-04-08
- 2.0.1 — 2021-04-08
- 2.0.0 — 2020-10-22
- 1.0.1 — 2020-01-19
- 1.0.0 — 2020-01-07
- 0.1.1 — 2019-11-06
- 0.1.0 — 2019-09-27

## README

# @preconstruct/next

A [Next.js](https://nextjs.org/) plugin to make Next sites work with [`preconstruct dev`](https://preconstruct.tools/guides/using-preconstruct-dev-in-a-monorepo).

## Install

```bash
yarn add @preconstruct/next
```

## Usage

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

```js
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:

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

---
_Source: https://npm.io/package/@preconstruct/next · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
