rush-ai 0.13.0 → 0.13.1
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 +6 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9927,6 +9927,9 @@ function pushWithRouting(projectPath, source, envGitRemote) {
|
|
|
9927
9927
|
|
|
9928
9928
|
// src/commands/task/deploy.ts
|
|
9929
9929
|
var DOMAIN_PREFIX_REGEX = /^[a-z0-9][a-z0-9-]{0,28}[a-z0-9]$|^[a-z0-9]$/;
|
|
9930
|
+
function getApiBaseUrl2() {
|
|
9931
|
+
return process.env.RUSH_API_URL ?? getGlobalConfig().api;
|
|
9932
|
+
}
|
|
9930
9933
|
function validateDomainPrefix(prefix) {
|
|
9931
9934
|
if (!DOMAIN_PREFIX_REGEX.test(prefix)) {
|
|
9932
9935
|
throw new RushError(
|
|
@@ -10206,7 +10209,7 @@ async function publishNextjs(client, projectId, commitHash, domain, format) {
|
|
|
10206
10209
|
}
|
|
10207
10210
|
});
|
|
10208
10211
|
if (domain !== void 0) {
|
|
10209
|
-
const
|
|
10212
|
+
const apiBase = getApiBaseUrl2();
|
|
10210
10213
|
return {
|
|
10211
10214
|
url: buildDeployUrl(domain, "production", apiBase),
|
|
10212
10215
|
domain: buildDeployDomain(domain, "production", apiBase)
|
|
@@ -10247,7 +10250,7 @@ async function publishStatic(client, projectId, commitHash, env, domain) {
|
|
|
10247
10250
|
{ taskId: projectId, reason: "publish_failed" }
|
|
10248
10251
|
);
|
|
10249
10252
|
}
|
|
10250
|
-
const
|
|
10253
|
+
const apiBase = getApiBaseUrl2();
|
|
10251
10254
|
const resolvedDomain = domain !== void 0 ? buildDeployDomain(domain, env, apiBase) : publishResp.data.data?.domain;
|
|
10252
10255
|
const resolvedUrl = domain !== void 0 ? buildDeployUrl(domain, env, apiBase) : publishResp.data.data?.url;
|
|
10253
10256
|
const versionId = commitHash;
|
|
@@ -10355,7 +10358,7 @@ function registerDomainSubcommand(task, program) {
|
|
|
10355
10358
|
return;
|
|
10356
10359
|
}
|
|
10357
10360
|
if (data.available) {
|
|
10358
|
-
const
|
|
10361
|
+
const api = process.env.RUSH_API_URL ?? getGlobalConfig().api;
|
|
10359
10362
|
const url = buildDeployUrl(prefix, "production", api);
|
|
10360
10363
|
output.success(`Prefix available: ${url}`);
|
|
10361
10364
|
} else {
|