This package has been deprecated

Author message:

This package has been deprecated in favor of @netlify/plugin-nextjs

@netlify/plugin-next

0.0.4 • Public • Published

Netlify Next.js Build Plugin

Enable Next.js dynamic routes on Netlify.

Installation and Usage

  1. Install the dependency from npm

    npm install @netlify/plugin-next
  2. Then add the following lines to your netlify.toml file:

    [[plugins]]
      package = "@netlify/plugin-next"
  3. Ensure that your next.config.js has the target set to serverless

    // next.config.js
    module.exports = {
      // Target must be serverless
      target: 'serverless'
    };
  4. Ensure the following values in netlify.toml.

    build command is next build, or running it under the hood.

    function dir is set to out_functions

    publish dir is set to out_publish

    [build]
      command = "next build"
      functions = "out_functions"
      publish   = "out_publish"

Config should ultimately look something like:

[build]
  command = "npm run build"
  functions = "out_functions"
  publish   = "out_publish"

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

Readme

Keywords

none

Package Sidebar

Install

npm i @netlify/plugin-next

Weekly Downloads

4

Version

0.0.4

License

MIT

Unpacked Size

8.76 kB

Total Files

5

Last publish

Collaborators

  • youvalv
  • berdav
  • vitaliyr
  • smnh
  • denar90
  • kathmbeck
  • rj-netlify
  • akardet
  • pieh
  • hrishikeshk
  • sarahetter
  • orinokai
  • ericap
  • seanroberts
  • skn0tt
  • mikewen
  • biilmann
  • marcus.netlify
  • jgantunes
  • eduardoboucas
  • netlify-bot
  • nasiba
  • ascorbic