api.trigger.dev is now the default cloud url

This commit is contained in:
Eric Allam
2023-07-05 14:47:41 +01:00
parent 6af098ee8a
commit 6d4922f419
5 changed files with 9 additions and 8 deletions
+6
View File
@@ -0,0 +1,6 @@
---
"@trigger.dev/sdk": patch
"@trigger.dev/cli": patch
---
api.trigger.dev is now the default cloud url
-5
View File
@@ -1,5 +0,0 @@
---
"@trigger.dev/sdk": patch
---
Default the apiUrl to cloud.trigger.dev
+1 -1
View File
@@ -67,7 +67,7 @@ export const promptTriggerUrl = async (): Promise<string> => {
message: "Are you using the Trigger.dev cloud or self-hosted?",
choices: [
{
name: "Trigger.dev Cloud (https://cloud.trigger.dev)",
name: `Trigger.dev Cloud (https://api.trigger.dev)`,
value: "cloud",
default: true,
},
+1 -1
View File
@@ -18,4 +18,4 @@ export const TITLE_TEXT = `
export const DEFAULT_APP_NAME = "my-triggers";
export const COMMAND_NAME = "@trigger.dev/cli";
export const TEMPLATE_ORGANIZATION = "triggerdotdev";
export const DEFAULT_TRIGGER_URL = "https://cloud.trigger.dev";
export const DEFAULT_TRIGGER_URL = "https://api.trigger.dev";
+1 -1
View File
@@ -63,7 +63,7 @@ export class ApiClient {
this.#apiUrl =
this.#options.apiUrl ??
process.env.TRIGGER_API_URL ??
"https://cloud.trigger.dev";
"https://api.trigger.dev";
this.#logger = new Logger("trigger.dev", this.#options.logLevel);
}