8000 update README with info about deploy contexts (#100) · opennextjs/opennextjs-netlify@05a573a · GitHub
[go: up one dir, main page]

Skip to content

Commit 05a573a

Browse files
update README with info about deploy contexts (#100)
1 parent 0e6d7d4 commit 05a573a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ Read more about [UI-based plugin installation](https://docs.netlify.com/configur
4747
package = "@netlify/plugin-nextjs"
4848
```
4949

50+
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+
52+
```toml
53+
[context.production.environment]
54+
NEXT_SERVERLESS = "true"
55+
NODE_ENV = "production"
56+
```
57+
5058
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`.
5159

5260
```

0 commit comments

Comments
 (0)
0