From 7dea042cf4bc340b63e0d4abc6b98f8d23a6fb01 Mon Sep 17 00:00:00 2001 From: Lindsay Levine Date: Wed, 17 Feb 2021 03:54:10 -0500 Subject: [PATCH] update README with info about deploy contexts --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index e5b32f28f4..09f9b2f92f 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,14 @@ Read more about [UI-based plugin installation](https://docs.netlify.com/configur package = "@netlify/plugin-nextjs" ``` + 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: + + ```toml + [context.production.environment] + NEXT_SERVERLESS = "true" + NODE_ENV = "production" + ``` + 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`. ```