Fix when setting the url as an option
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@trigger.dev/cli": patch
|
||||
---
|
||||
|
||||
Fix when setting the url as an option
|
||||
@@ -32,7 +32,7 @@
|
||||
"type": "module",
|
||||
"exports": "./dist/index.js",
|
||||
"bin": {
|
||||
"cli": "./dist/index.js"
|
||||
"trigger-cli": "./dist/index.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/fs-extra": "^11.0.1",
|
||||
@@ -76,4 +76,4 @@
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -187,12 +187,12 @@ const resolveOptionsWithPrompts = async (
|
||||
try {
|
||||
if (!options.triggerUrl) {
|
||||
resolvedOptions.triggerUrl = await promptTriggerUrl();
|
||||
}
|
||||
|
||||
if (resolvedOptions.triggerUrl === CLOUD_TRIGGER_URL) {
|
||||
resolvedOptions.apiUrl = CLOUD_API_URL;
|
||||
} else {
|
||||
resolvedOptions.apiUrl = resolvedOptions.triggerUrl;
|
||||
}
|
||||
if (resolvedOptions.triggerUrl === CLOUD_TRIGGER_URL) {
|
||||
resolvedOptions.apiUrl = CLOUD_API_URL;
|
||||
} else {
|
||||
resolvedOptions.apiUrl = resolvedOptions.triggerUrl;
|
||||
}
|
||||
|
||||
if (!options.apiKey) {
|
||||
|
||||
Reference in New Issue
Block a user