@envsafes-org/cli 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +9 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24,6 +24,15 @@ exports.config = new conf_1.default({
|
|
|
24
24
|
dashboardUrl: { type: "string", default: "https://www.envsafe.dev" },
|
|
25
25
|
},
|
|
26
26
|
});
|
|
27
|
+
// Fix legacy URLs in local config
|
|
28
|
+
const currentApiUrl = exports.config.get("apiUrl");
|
|
29
|
+
const currentDashboardUrl = exports.config.get("dashboardUrl");
|
|
30
|
+
if (currentApiUrl.includes("vercel.app")) {
|
|
31
|
+
exports.config.set("apiUrl", "https://www.envsafe.dev");
|
|
32
|
+
}
|
|
33
|
+
if (currentDashboardUrl.includes("vercel.app")) {
|
|
34
|
+
exports.config.set("dashboardUrl", "https://www.envsafe.dev");
|
|
35
|
+
}
|
|
27
36
|
const program = new commander_1.Command();
|
|
28
37
|
program
|
|
29
38
|
.name("envsafe")
|