Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/archoleat/next-define-config

Provide a defineConfig function for Next
https://github.com/archoleat/next-define-config

archoleat archoleat-next-define-config config configuration define-config next next-config next-define-config plugin typescript

Last synced: 3 months ago
JSON representation

Provide a defineConfig function for Next

Awesome Lists containing this project

README

        

# Next Define Config

![NPM Version](https://img.shields.io/npm/v/%40archoleat%2Fnext-define-config)
![NPM Downloads](https://img.shields.io/npm/dm/%40archoleat%2Fnext-define-config)
![ESM](https://img.shields.io/badge/ESM-fe0)
![Provenance](https://img.shields.io/badge/Provenance-fo0)
![Specs](https://img.shields.io/github/actions/workflow/status/archoleat/next-define-config/spec.yaml?label=Specs)
![Commitlint](https://img.shields.io/github/actions/workflow/status/archoleat/next-define-config/commitlint.yaml?label=Commitlint)
![Editorconfig](https://img.shields.io/github/actions/workflow/status/archoleat/next-define-config/editorconfig.yaml?label=Editorconfig)
![Prettier](https://img.shields.io/github/actions/workflow/status/archoleat/next-define-config/prettier.yaml?label=Prettier)
![ESLint](https://img.shields.io/github/actions/workflow/status/archoleat/next-define-config/eslint.yaml?label=ESLint)
![Remark](https://img.shields.io/github/actions/workflow/status/archoleat/next-define-config/remark.yaml?label=Remark)

## Table of Contents

- [Installation](#installation)
- [Usage](#usage)
- [Contributing](#contributing)
- [License](#license)

## 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).