@an-sdk/cli 0.0.4 → 0.0.5
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 +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39,7 +39,7 @@ function saveProject(data) {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
// src/login.ts
|
|
42
|
-
var API_BASE = process.env.AN_API_URL || "https://an.dev/api/v1";
|
|
42
|
+
var API_BASE = process.env.AN_API_URL || "https://www.an.dev/api/v1";
|
|
43
43
|
async function login() {
|
|
44
44
|
p.intro("an login");
|
|
45
45
|
const existing = getApiKey();
|
|
@@ -134,7 +134,7 @@ import * as p2 from "@clack/prompts";
|
|
|
134
134
|
function slugify(name) {
|
|
135
135
|
return name.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "");
|
|
136
136
|
}
|
|
137
|
-
var API_BASE2 = process.env.AN_API_URL || "https://an.dev/api/v1";
|
|
137
|
+
var API_BASE2 = process.env.AN_API_URL || "https://www.an.dev/api/v1";
|
|
138
138
|
var AN_BASE = process.env.AN_URL || "https://an.dev";
|
|
139
139
|
async function fetchProjects(apiKey) {
|
|
140
140
|
const res = await fetch(`${API_BASE2}/projects`, {
|