Skip to content

Commit c5317e3

Browse files
authored
fix(deploy): add normalize content in deploy command (#7908)
* EX-1441 - add normalize content in deploy command * generate docs
1 parent f33a839 commit c5317e3

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

docs/commands/deploy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ netlify deploy
2929
**Flags**
3030

3131
- `alias` (*string*) - Specifies the alias for deployment, the string at the beginning of the deploy subdomain. Useful for creating predictable deployment URLs. Avoid setting an alias string to the same value as a deployed branch. `alias` doesn’t create a branch deploy and can’t be used in conjunction with the branch subdomain feature. Maximum 37 characters.
32-
- `context` (*string*) - Specify a deploy context for environment variables read during the build (production”, ”deploy-preview”, ”branch-deploy”, ”dev) or `branch:your-branch` where `your-branch` is the name of a branch (default: dev)
32+
- `context` (*string*) - Specify a deploy context for environment variables read during the build ("production", "deploy-preview", "branch-deploy", "dev") or `branch:your-branch` where `your-branch` is the name of a branch (default: dev)
3333
- `create-site` (*string*) - Create a new site and deploy to it. Optionally specify a name, otherwise a random name will be generated. Requires --team flag if you have multiple teams.
3434
- `dir` (*string*) - Specify a folder to deploy
3535
- `filter` (*string*) - For monorepos, specify the name of the application to run the command in

src/commands/deploy/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { env, platform } from 'process'
33
import { Option } from 'commander'
44
import terminalLink from 'terminal-link'
55

6+
import { normalizeContext } from '../../utils/env/index.js'
67
import BaseCommand from '../base-command.js'
78
import { chalk, logAndThrowError, warn } from '../../utils/command-helpers.js'
89
import type { DeployOptionValues } from './option_values.js'
@@ -72,7 +73,8 @@ For detailed configuration options, see the Netlify documentation.`,
7273
)
7374
.option(
7475
'--context <context>',
75-
'Specify a deploy context for environment variables read during the build (”production”, ”deploy-preview”, ”branch-deploy”, ”dev”) or `branch:your-branch` where `your-branch` is the name of a branch (default: dev)',
76+
'Specify a deploy context for environment variables read during the build ("production", "deploy-preview", "branch-deploy", "dev") or `branch:your-branch` where `your-branch` is the name of a branch (default: dev)',
77+
normalizeContext,
7678
)
7779
.option(
7880
'--skip-functions-cache',

0 commit comments

Comments
 (0)