Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@netlify/plugin-nextjs

Package Overview
Dependencies
Maintainers
16
Versions
261
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@netlify/plugin-nextjs

Run Next.js seamlessly on Netlify

  • 4.0.0-beta.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
48K
decreased by-42.37%
Maintainers
16
Weekly downloads
 
Created
Source

Next.js on Netlify Build Plugin

Essential Next.js Build Plugin (beta)

:warning: This is the beta version of the Essential Next.js plugin. For the stable version, see Essential Next.js plugin v3 :warning:

What's new in this version

Version 4 is a complete rewrite of the Essential Next.js plugin. For full details of everything that's new, see the v4 release notes

Installing the beta

  • Install the module:
npm install -D @netlify/plugin-nextjs@beta
  • Change the publish directory to .next and add the plugin to netlify.toml if not already installed:
[build]
publish = ".next"

[[plugins]]
package = "@netlify/plugin-nextjs"

If you previously set target: "serverless" or a custom distDir in your next.config.js, or set node_bundler or external_node_modules in your netlify.toml these are no longer needed and can be removed.

The serverless and experimental-serverless-trace targets are deprecated in Next 12, and all builds with this plugin will now use the default server target.

If you are using a monorepo you will need to change publish to point to the full path to the built .next directory, which may be in a subdirectory. If you have changed your distDir then it will need to match that.

If you are using Nx, then you will need to point publish to the folder inside dist, e.g. dist/apps/myapp/.next.

Beta feedback

Please share any thoughts, feedback or questions about the beta in our discussion.

Keywords

FAQs

Package last updated on 03 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc