Skip to content

Commit

Permalink
fix(cli): only require workspace name if more than 1 workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Dec 16, 2022
1 parent 551c4d5 commit 743244b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -71,7 +71,7 @@ function resolveGraphQLAPIsFromConfig(

for (const apiDef of apiDefs) {
const {workspace: workspaceName, source: sourceName} = apiDef
if (!workspaceName && workspaces.length > 0) {
if (!workspaceName && workspaces.length > 1) {
throw new Error(
'Must define `workspace` name in GraphQL API config when multiple workspaces are defined'
)
Expand Down

1 comment on commit 743244b

@vercel
Copy link

@vercel vercel bot commented on 743244b Dec 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

test-studio – ./

test-studio-git-next.sanity.build
test-studio.sanity.build

Please sign in to comment.