We are under very early construction, so please indulge us.

Next.js

Configuration

Configuration file is a code (compared to implementations like package.json).

It uses a chain pattern close to the one used in Node.js, OWIN, etc.

Plugins composition

Probably plugins like next-compose-plugins are redundant and we can simply use Array.reduce function.

module.exports = [
    nextConfig,
    mdx, mdx => ({...mdx, pageExtensions:
        pageExtensions: ["js", "jsx", "ts", "tsx", "md", "mdx"]
    }})
]
.reduce((config, plugin) => plugin(config))

CSS

As I know, from 9.2 or later Post CSS is included and automatically configured.

Plugins

Next.js plugin is mostly a configurator for Webpack plugin.

InBox

Dynamic routes (/spec/[id].tsx for example) is called twice. The first time with empty router query and the second time its ok.

S