Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/archoleat/next-define-config
- Owner: archoleat
- License: mit
- Created: 2024-08-10T13:22:53.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-10-18T19:15:26.000Z (3 months ago)
- Last Synced: 2024-10-29T23:07:54.922Z (3 months ago)
- Topics: archoleat, archoleat-next-define-config, config, configuration, define-config, next, next-config, next-define-config, plugin, typescript
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@archoleat/next-define-config
- Size: 300 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
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).