Official Next.js plugins
Switch branches/tags
Nothing to show
Clone or download
threehams and timneutkens Remove baseUrl config option. (#357)
The example `tsconfig.json` specifies the option: `"baseUrl": ".",`

This has two negative effects:
- TypeScript allows paths such as `import Component from "components/Component"` but Babel does not by default. Typical NextJS configurations don't allow paths like this, so this results in uncaught runtime errors.
- Typescript / VSCode's auto-import will use these invalid paths instead of relative paths.
Latest commit 8d58b41 Dec 15, 2018

readme.md

Next.js Plugins

Official Next.js plugins

Community made plugins

Adding a plugin

⚠️ Before adding a plugin in this repository please create an issue to establish if it should be an official plugin or not.

  1. Create a directory under the packages folder
  2. Add package.json to the directory with these contents:
{
  "name": "@zeit/next-<NAME>",
  "version": "0.0.1",
  "main": "index.js",
  "license": "MIT",
  "repository": "zeit/next-plugins"
}
  1. Add a index.js file with the plugin code
  2. Add a readme.md explaining what the plugin does, how to install, and how to configure it
  3. Submit a pull request

Publishing

Note: this is for maintainers only and won't work if you're not a maintainer.

Replace NPM_CONFIG_OTP with the OTP generated by the authenticator.

Publishing Canary

NPM_CONFIG_OTP=123456 yarn release-canary

Publishing Stable

NPM_CONFIG_OTP=123456 yarn release-stable