@archoleat/next-define-config
Version:
Provide a defineConfig function for Next
56 lines (37 loc) • 1.71 kB
Markdown
# Next Define Config








## Table of Contents
- [Installation](#installation)
- [Usage](#usage)
- [Contributing](#contributing)
- [License](#license)
Provide a defineConfig function for Next.
## Installation
```shell
bun i -D @archoleat/next-define-config
```
## Usage
See [Next Configuration](https://nextjs.org/docs/app/api-reference/next-config-js).
Instead of this:
```js
/** @type {import('next').NextConfig} */
const nextConfig = {};
export default nextConfig;
```
Use this:
```js
import { defineConfig } from '@archoleat/next-define-config';
export default defineConfig({})
```
## Contributing
Please read [**CONTRIBUTING**](https://github.com/archoleat/.github/blob/main/CONTRIBUTING.md)
to start contributing.
## License
This project is licensed under the [**MIT license**](LICENSE).