mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-01 16:00:29 +02:00
fix(v2): DX deploy error messages should print effective env variables names #3503
This commit is contained in:
parent
dc31dad1de
commit
e98247e894
1 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ export default async function deploy(
|
|||
siteConfig.organizationName;
|
||||
if (!organizationName) {
|
||||
throw new Error(
|
||||
`Missing project organization name. Did you forget to define 'organizationName' in ${CONFIG_FILE_NAME}? You may also export it via the organizationName environment variable.`,
|
||||
`Missing project organization name. Did you forget to define 'organizationName' in ${CONFIG_FILE_NAME}? You may also export it via the ORGANIZATION_NAME environment variable.`,
|
||||
);
|
||||
}
|
||||
const projectName =
|
||||
|
@ -52,7 +52,7 @@ export default async function deploy(
|
|||
siteConfig.projectName;
|
||||
if (!projectName) {
|
||||
throw new Error(
|
||||
`Missing project name. Did you forget to define 'projectName' in ${CONFIG_FILE_NAME}? You may also export it via the projectName environment variable.`,
|
||||
`Missing project name. Did you forget to define 'projectName' in ${CONFIG_FILE_NAME}? You may also export it via the PROJECT_NAME environment variable.`,
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue