WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@Timothyw0
Copy link
Member

@Timothyw0 Timothyw0 commented Dec 15, 2024

This PR reverts all merged code since the 2.0.1 release to prepare for a critical release to update the STATIC_SITE_CLIENT_RELEASE_METADATA_URL constant since the old URL is being decommissioned.

git diff between 2.0.1 and this PR:

diff --git a/package-lock.json b/package-lock.json
index 61433741..91f16b23 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
 {
   "name": "@azure/static-web-apps-cli",
-  "version": "2.0.2",
+  "version": "2.0.1",
   "lockfileVersion": 2,
   "requires": true,
   "packages": {
     "": {
       "name": "@azure/static-web-apps-cli",
-      "version": "2.0.2",
+      "version": "2.0.1",
       "license": "MIT",
       "dependencies": {
         "@azure/arm-appservice": "^15.0.0",

diff --git a/package.json b/package.json
index ccc1fe80..2be1e25a 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@azure/static-web-apps-cli",
-  "version": "2.0.2",
+  "version": "2.0.1",
   "description": "Azure Static Web Apps CLI",
   "type": "module",
   "scripts": {
    
diff --git a/src/core/constants.ts b/src/core/constants.ts
index eb1c5a4e..edb062df 100644
--- a/src/core/constants.ts
+++ b/src/core/constants.ts
@@ -11,7 +11,7 @@ const __dirname = path.dirname(__filename);
 export const DEPLOY_BINARY_NAME = "StaticSitesClient";
 export const DEPLOY_BINARY_STABLE_TAG = "stable";
 export const DEPLOY_FOLDER = path.join(os.homedir(), ".swa", "deploy");
-export const STATIC_SITE_CLIENT_RELEASE_METADATA_URL = "https://aka.ms/swalocaldeploy";
+export const STATIC_SITE_CLIENT_RELEASE_METADATA_URL = "https://swalocaldeploy.azureedge.net/downloads/versions.json";
 
 // Data-api-builder related constants
 export const DATA_API_BUILDER_BINARY_NAME = "DataApiBuilder";

Tested by linking local SWA CLI build to npm, deleting my local homedir/.swa/deploy folder, and successfully downloaded the latest SWA client from latest metadata URL using swa deploy --env production -V silly logging:

image

image

image

@Timothyw0 Timothyw0 requested a review from cjk7989 as a code owner December 15, 2024 11:57
@github-actions github-actions bot added scope: core Issues happened a the ./src/core level scope: auth Issues related to the authentication emulator labels Dec 15, 2024
@Timothyw0 Timothyw0 merged commit 4ccea55 into Azure:main Dec 16, 2024
15 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: auth Issues related to the authentication emulator scope: core Issues happened a the ./src/core level

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants