From ec89df4833ce6f92b50363915a19f7ecbc9f9411 Mon Sep 17 00:00:00 2001 From: Bruno Paz <184563+brpaz@users.noreply.github.com> Date: Sun, 12 Jun 2022 11:37:36 +0100 Subject: [PATCH] add envrinonment deploy --- index.js | 4 ++-- src/index.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 86a6a9a..57dfb05 100644 --- a/index.js +++ b/index.js @@ -16123,8 +16123,8 @@ try { if ${accountId} { $ export CLOUDFLARE_ACCOUNT_ID="${accountId}" } - - if ${envrionment} { + + if ${environment} { $$ npx wrangler@2 pages publish "${directory}" --project-name="${projectName}" --env="$[environment}" } else { $$ npx wrangler@2 pages publish "${directory}" --project-name="${projectName}" diff --git a/src/index.ts b/src/index.ts index b1f6a68..6aeea7d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -64,8 +64,8 @@ try { if ${accountId} { $ export CLOUDFLARE_ACCOUNT_ID="${accountId}" } - - if ${envrionment} { + + if ${environment} { $$ npx wrangler@2 pages publish "${directory}" --project-name="${projectName}" --env="$[environment}" } else { $$ npx wrangler@2 pages publish "${directory}" --project-name="${projectName}"