nextui/apps/docs/next.config.js
աӄա 765dac53cf
refactor(docs): dx improvement in accordion (#3856)
* refactor: improve dx for writing a docs component (#2544)

* refactor: improve dx for write a docs component

Signed-off-by: Innei <i@innei.in>

* refactor(docs): switch to contentlayer2

* chore(docs): rename to avoid conflict

* refactor(docs): switch to next-contentlayer2

* refactor(docs): revise docs lib

* chore(deps): bump docs related dependencies

* fix(use-aria-multiselect): type issue due to ts version bump

---------

Signed-off-by: Innei <i@innei.in>
Co-authored-by: WK Wong <wingkwong.code@gmail.com>

* refactor(docs): accordion codes

* feat(docs): declare module `*.jsx?raw`

* feat(docs): include `**/*.jsx`

* fix(docs): incorrect content

* chore(docs): add new lines

* refactor(docs): lint

---------

Signed-off-by: Innei <i@innei.in>
Co-authored-by: Innei <tukon479@gmail.com>
2024-10-20 00:54:13 +08:00

28 lines
771 B
JavaScript

const withContentlayer = require("next-contentlayer2").withContentlayer;
/** @type {import('next').NextConfig} */
const nextConfig = {
transpilePackages: ["@nextui-org/react", "@nextui-org/theme"],
swcMinify: true,
reactStrictMode: true, // Recommended for the `pages` directory, default in `app`.
redirects: require("./next-redirect.js"),
eslint: {
ignoreDuringBuilds: true,
},
typescript: {
// ignoreBuildErrors: process.env.IS_VERCEL_ENV === "true",
ignoreBuildErrors: true,
},
images: {
domains: [
"opencollective-production.s3.us-west-1.amazonaws.com",
"avatars.githubusercontent.com",
"logo.clearbit.com",
"i.pravatar.cc",
"nextui.org",
],
},
};
module.exports = withContentlayer(nextConfig);