File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ Version 4 is a complete rewrite of the Essential Next.js plugin. For full detail
18
18
19
19
## Installing the plugin
20
20
21
- The plugin should be installed automatically for new Next.js sites on Netlify. You can also install it manually like
21
+ The plugin installs automatically for new Next.js sites on Netlify. You can also install it manually like
22
22
this:
23
23
24
24
- Install the module:
27
27
npm install -D @netlify/plugin-nextjs
28
28
```
29
29
30
- ...then add it to your ` netlify.toml ` file:
30
+ ...then add the plugin to your ` netlify.toml ` file:
31
31
32
32
``` toml
33
33
[[plugins ]]
@@ -49,8 +49,10 @@ Change the `publish` directory to `.next`:
49
49
publish = " .next"
50
50
```
51
51
52
- If you previously set a custom ` distDir ` in your ` next.config.js ` , or set ` node_bundler = "esbuild" ` or
53
- ` external_node_modules ` in your ` netlify.toml ` these are no longer needed and can be removed.
52
+ If you previously set these values, they're no longer needed and can be removed:
53
+ - ` distDir ` in your ` next.config.js `
54
+ - ` node_bundler = "esbuild" ` in ` netlify.toml `
55
+ - ` external_node_modules ` in ` netlify.toml `
54
56
55
57
The ` serverless ` and ` experimental-serverless-trace ` targets are deprecated in Next 12, and all builds with this plugin
56
58
will now use the default ` server ` target. If you previously set the target in your ` next.config.js ` , you should remove
You can’t perform that action at this time.
0 commit comments