You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -26,46 +26,44 @@ This build plugin is a utility for supporting Next.js on Netlify. To enable serv
26
26
27
27
## Installation and Configuration
28
28
29
-
There are two ways to install the plugin in your Next.js on Netlify site: with the Netlify UI or with file-based installation.
29
+
As of v3.0.0, all new sites deployed to Netlify with Next.js will automatically build with this plugin for a seamless experience deploying Next.js on Netlify!
30
30
31
-
**UI-based Installation**
31
+
This means that you don't have to do anything — just build and deploy your site to Netlify as usual and we'll handle the rest.
32
32
33
-
You can install this plugin using this [direct in-app installation link](http://app.netlify.com/plugins/@netlify/plugin-nextjs/install) or from your team's [Plugins directory](https://app.netlify.com/plugins) in the Netlify UI.
33
+
You're able to remove the plugin at any time by visiting the Plugins tab on your site.
34
34
35
-
Read more about [UI-based plugin installation](https://docs.netlify.com/configure-builds/build-plugins/#ui-installation) in our docs.
35
+
### Manual installation
36
36
37
-
**File-based Installation**
37
+
1\. Create a `netlify.toml` in the root of your project. Your file should include the plugins section below:
38
38
39
-
1. Create a `netlify.toml` in the root of your project. Your file should include the plugins section below:
40
-
41
-
```toml
42
-
[build]
43
-
command = "npm run build"
44
-
publish = "out"
39
+
```toml
40
+
[build]
41
+
command = "npm run build"
42
+
publish = "out"
45
43
46
-
[[plugins]]
47
-
package = "@netlify/plugin-nextjs"
48
-
```
44
+
[[plugins]]
45
+
package = "@netlify/plugin-nextjs"
46
+
```
49
47
50
48
You can also add context-specific properties and environment variables to your `netlify.toml`. Read more about [deploy contexts](https://docs.netlify.com/configure-builds/file-based-configuration/#deploy-contexts) in our docs. For example:
51
49
52
-
```toml
53
-
[context.production.environment]
54
-
NEXT_SERVERLESS = "true"
55
-
NODE_ENV = "production"
56
-
```
50
+
```toml
51
+
[context.production.environment]
52
+
NEXT_SERVERLESS = "true"
53
+
NODE_ENV = "production"
54
+
```
57
55
58
-
2. From your project's base directory, use `npm`, `yarn`, or any other Node.js package manager to add this plugin to `devDependencies` in `package.json`.
56
+
2\. From your project's base directory, use `npm`, `yarn`, or any other Node.js package manager to add this plugin to `devDependencies` in `package.json`.
59
57
60
-
```
61
-
npm install -D @netlify/plugin-nextjs
62
-
```
58
+
```
59
+
npm install -D @netlify/plugin-nextjs
60
+
```
63
61
64
-
or
62
+
or
65
63
66
-
```
67
-
yarn add -D @netlify/plugin-nextjs
68
-
```
64
+
```
65
+
yarn add -D @netlify/plugin-nextjs
66
+
```
69
67
70
68
Read more about [file-based plugin installation](https://docs.netlify.com/configure-builds/build-plugins/#file-based-installation) in our docs.
0 commit comments