Skip to content

Commit

Permalink
fix: handle new provider name when deploying (#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
BeardInASuit committed Dec 12, 2022
1 parent 27ec687 commit eee1263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/account.ts
Expand Up @@ -266,7 +266,7 @@ export async function chooseOrCreateProjectDetails(
logger.silly({ staticSite });

if (staticSite && staticSite.id) {
if (!shouldPrintToken && staticSite.provider !== "Custom" && staticSite.provider !== "None") {
if (!shouldPrintToken && staticSite.provider !== "Custom" && staticSite.provider !== "None" && staticSite.provider !== "SwaCli") {
// TODO: add a temporary warning message until we ship `swa link/unlink`
logger.error(`The project "${staticSite.name}" is linked to "${staticSite.provider}"!`);
logger.error(`Unlink the project from the "${staticSite.provider}" provider and try again.`, true);
Expand Down

0 comments on commit eee1263

Please sign in to comment.