Skip to content

Commit 8d50eac

Browse files
committed
fix(docs): update default base URL references in pull and push command examples
- change default base URL from https://2some.one to https://leaper.one in documentation - ensure consistency across pull and push command examples for actual request URLs - update URL parsing utility to reflect the new default base URL
1 parent 6264a56 commit 8d50eac

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

docs/pull-command-examples.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@ envx pull deployment-v1.2.3 --remote https://api.example.com --namespace product
2020

2121
### 3. 使用默认 base URL
2222
```bash
23-
# 不指定任何 URL,自动使用默认的 https://2some.one
23+
# 不指定任何 URL,自动使用默认的 https://leaper.one
2424
envx pull deployment-v1.2.3 --namespace production --project myapp
2525

26-
# 实际请求会发送到: https://2some.one/api/v1/envx/production/myapp?tag=deployment-v1.2.3
26+
# 实际请求会发送到: https://leaper.one/api/v1/envx/production/myapp?tag=deployment-v1.2.3
2727
```
2828

2929
### 4. 拉取特定环境变量
3030
```bash
3131
# 只拉取特定的环境变量
3232
envx pull deployment-v1.2.3 --key DATABASE_URL --namespace production --project myapp
3333

34-
# 实际请求会发送到: https://2some.one/api/v1/envx/production/myapp?tag=deployment-v1.2.3&key=DATABASE_URL
34+
# 实际请求会发送到: https://leaper.one/api/v1/envx/production/myapp?tag=deployment-v1.2.3&key=DATABASE_URL
3535
```
3636

3737
## 功能特性

docs/push-command-examples.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Push 命令现在使用独立的 URL 解析工具 (`src/utils/url.ts`),支持
88
- 解析基础格式 URL:`<baseurl>` (配合命令行参数)
99
- 自动构建 API 路径:`/api/v1/envx/<namespace>/<project>/push`
1010
- 从配置文件获取远程 URL 信息
11-
- **默认 base URL**: `https://2some.one` (当没有配置时自动使用)
11+
- **默认 base URL**: `https://leaper.one` (当没有配置时自动使用)
1212

1313
## 基本用法
1414

@@ -38,10 +38,10 @@ envx push deployment-v1.2.3 --namespace production --project myapp
3838

3939
### 4. 使用默认 base URL
4040
```bash
41-
# 不指定任何 URL,自动使用默认的 https://2some.one
41+
# 不指定任何 URL,自动使用默认的 https://leaper.one
4242
envx push deployment-v1.2.3 --namespace production --project myapp
4343

44-
# 实际请求会发送到: https://2some.one/api/v1/envx/production/myapp/push
44+
# 实际请求会发送到: https://leaper.one/api/v1/envx/production/myapp/push
4545
```
4646

4747
## 请求体格式

src/utils/url.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* URL 解析工具
33
*/
44

5-
export const DEFAULT_BASE_URL = 'https://2some.one';
5+
export const DEFAULT_BASE_URL = 'https://leaper.one';
66

77
export interface ParsedUrl {
88
baseUrl: string;

0 commit comments

Comments
 (0)