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
feat: merge next-on-netlify into the core plugin repo (#106)
* foundation: embed NoN into plugin under src/
* wip: updates to test paths, but things still aren’t working
* fix: use next@^10.0.6 for i18n
* [email protected] release
* wip: start changelog entry for review
* chore: update version + installation instructions
* fix: edit for clarity
Co-authored-by: rstavchansky <[email protected]>
* fix: add link + edit for clarity
Co-authored-by: rstavchansky <[email protected]>
* fix: add UI-based install back in
* fix: add NoN migration guide link
* fix: include src in published package
* [email protected] release
* fix: package description
* fix: next 10.0.8 changes loadConfig to be async (#105)
* fix: 10.0.8 changes loadConfig to be async
* wip: make literally everything async bc loadConfig
* wip: fix i18n bug, got 10.0.6 tests to pass
* wip: NoN tests pass on 10.0.8 but plugin test chdir fixture issue
* Fix bug with Jest
* fix: delete TO-DO
Co-authored-by: ehmicky <[email protected]>
Co-authored-by: Lindsay Levine <[email protected]>
Co-authored-by: rstavchansky <[email protected]>
Co-authored-by: lindsaylevine <[email protected]>
Co-authored-by: ehmicky <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,28 @@
1
1
# Changelog
2
2
3
+
## 3.0.0 (2021-03-??)
4
+
5
+
- feat: merge `next-on-netlify` into `@netlify/plugin-nextjs`
6
+
7
+
This improves our ability to maintain the plugin, reduces confusion about how to configure Next.js support for Netlify builds, and prepares the plugin for something we're pretty dang excited about: automatic installation for new Next.js projects!
8
+
9
+
> **NOTE: There are no breaking changes for existing plugin users.** This is a major release because we're bringing an external package into the plugin _and_ turning on automatic installation for new Next.js projects on Netlify. This doesn't break anything, but it's a big enough change that we wanted to treat it as a major release.
10
+
11
+
### Migrating from v2 to v3
12
+
13
+
If you've installed this plugin via Netlify's UI, no action is necessary. The upgrade is automatic.
14
+
15
+
If you've installed this plugin manually in your `netlify.toml`, you can upgrade two ways:
16
+
17
+
1. Manually update to the latest version using `npm i @netlify/plugin-nextjs@latest`.
18
+
2. If you prefer to automatically get updates, remove this plugin from your project and `netlify.toml`, then [install the plugin using the Netlify UI](http://app.netlify.com/plugins/@netlify/plugin-nextjs/install).
19
+
20
+
### Migrating from the original `next-on-netlify` package
21
+
22
+
As part of the 3.0.0 release, `next-on-netlify` has been deprecated and merged into the Essential Next.js Build Plugin. If your site is using the `next-on-netlify` package, you'll need to switch over to the plugin to get future updates.
23
+
24
+
For instructions on migrating from `next-on-netlify` to the Essential Next.js Build Plugin, please see the [migration guide on the `next-on-netlify` repo](https://github.com/netlify/next-on-netlify/blob/main/MIGRATING.md).
25
+
3
26
## 2.0.1 (2021-02-17)
4
27
5
28
- fail build if plugin cant load next.config.js ([#99](https://github.com/netlify/netlify-plugin-nextjs/pull/99))
@@ -26,46 +26,50 @@ 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
+
### For new Next.js sites
30
30
31
-
**UI-based Installation**
31
+
As of v3.0.0, all new sites deployed to Netlify with Next.js will automatically install this plugin for a seamless experience deploying Next.js on Netlify!
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
+
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.
34
34
35
-
Read more about [UI-based plugin installation](https://docs.netlify.com/configure-builds/build-plugins/#ui-installation)in our docs.
35
+
You're able to [remove the plugin](https://docs.netlify.com/configure-builds/build-plugins/#remove-a-plugin) at any time by visiting the **Plugins** tab for your site in the Netlify UI.
36
36
37
-
**File-based Installation**
37
+
### UI-based installation for existing Next.js sites
38
38
39
-
1. Create a `netlify.toml` in the root of your project. Your file should include the plugins section below:
39
+
If your Next.js project is already deployed to Netlify, use the Netlify UI to [install the Essential Next.js Build Plugin](http://app.netlify.com/plugins/@netlify/plugin-nextjs/install) in a few clicks.
40
40
41
-
```toml
42
-
[build]
43
-
command = "npm run build"
44
-
publish = "out"
41
+
### Manual installation
45
42
46
-
[[plugins]]
47
-
package = "@netlify/plugin-nextjs"
48
-
```
43
+
1\. Create a `netlify.toml` in the root of your project. Your file should include the plugins section below:
44
+
45
+
```toml
46
+
[build]
47
+
command = "npm run build"
48
+
publish = "out"
49
+
50
+
[[plugins]]
51
+
package = "@netlify/plugin-nextjs"
52
+
```
49
53
50
54
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
55
52
-
```toml
53
-
[context.production.environment]
54
-
NEXT_SERVERLESS = "true"
55
-
NODE_ENV = "production"
56
-
```
56
+
```toml
57
+
[context.production.environment]
58
+
NEXT_SERVERLESS = "true"
59
+
NODE_ENV = "production"
60
+
```
57
61
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`.
62
+
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
63
60
-
```
61
-
npm install -D @netlify/plugin-nextjs
62
-
```
64
+
```
65
+
npm install -D @netlify/plugin-nextjs
66
+
```
63
67
64
-
or
68
+
or
65
69
66
-
```
67
-
yarn add -D @netlify/plugin-nextjs
68
-
```
70
+
```
71
+
yarn add -D @netlify/plugin-nextjs
72
+
```
69
73
70
74
Read more about [file-based plugin installation](https://docs.netlify.com/configure-builds/build-plugins/#file-based-installation) in our docs.
0 commit comments