Skip to content

Commit b6338c3

Browse files
committed
release: v0.7.2
1 parent 3e02146 commit b6338c3

7 files changed

Lines changed: 33 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [0.7.2] - 2026-06-26
9+
10+
### Fixed
11+
12+
- Remove misleading `-p`/`--port` flag from `si local` command. The local stack
13+
is a single unified HTTP server that multiplexes across all simulated cloud
14+
services (API Gateway, functions, buckets) — a single port flag creates false
15+
expectations about which service's port is being controlled.
16+
17+
## [0.7.1] - 2026-06-26
18+
19+
### Fixed
20+
21+
- Always set errorDocument=indexDocument and enable SupportSubDir for OSS
22+
static websites (#196) (#197)
23+
24+
### Added
25+
26+
- CDN integration with OSS and API Gateway CDN support (#195)

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@geek-fun/serverlessinsight",
3-
"version": "0.7.1",
3+
"version": "0.7.2",
44
"description": "Full life cycle cross providers serverless application management for your fast-growing business.",
55
"homepage": "https://serverlessinsight.geekfun.club",
66
"main": "dist/src/index.js",

src/commands/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,14 +222,12 @@ program
222222
.description('run Serverless application locally for debugging')
223223
.option('-f, --file <path>', 'specify the yaml file')
224224
.option('-s, --stage <stage>', 'specify the stage', 'default')
225-
.option('-p, --port <port>', 'specify the port', '3000')
226225
.option('-d, --debug', 'enable debug mode')
227226
.option('-w, --watch', 'enable file watch', true)
228227
.action(
229-
actionWrapper('local', async ({ stage, port, debug, watch, file }) => {
228+
actionWrapper('local', async ({ stage, debug, watch, file }) => {
230229
await runLocal({
231230
stage,
232-
port: Number(port) || 3000,
233231
debug: !!debug,
234232
watch: typeof watch === 'boolean' ? watch : true,
235233
location: file,

src/commands/local.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,13 @@ import { lang } from '../lang';
55

66
export type RunLocalOptions = {
77
stage: string;
8-
port: number;
98
debug: boolean;
109
watch: boolean;
1110
location: string | undefined;
1211
};
1312

1413
export const runLocal = async (opts: RunLocalOptions) => {
15-
const { stage, port, debug, watch, location } = opts;
14+
const { stage, debug, watch, location } = opts;
1615

1716
const iacLocation = getIacLocation(location);
1817
const rawIac = parseYaml(iacLocation);
@@ -27,7 +26,6 @@ export const runLocal = async (opts: RunLocalOptions) => {
2726
logger.info(
2827
lang.__('RUN_LOCAL_STARTING', {
2928
stage,
30-
port: String(port),
3129
debug: String(debug),
3230
watch: String(watch),
3331
}),

src/lang/en.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ export const en = {
5252
LOCAL_SERVER_STOPPED: 'localServer stopped',
5353
LOCAL_GATEWAY_ERROR: 'Local gateway error',
5454
ERROR_STOPPING_LOCAL_SERVER: 'Error stopping localServer',
55-
RUN_LOCAL_STARTING:
56-
'run-local starting: stage={{stage}} port={{port}} debug={{debug}} watch={{watch}}',
55+
RUN_LOCAL_STARTING: 'run-local starting: stage={{stage}} debug={{debug}} watch={{watch}}',
5756

5857
// Function execution
5958
FUNCTION_REQUEST_RECEIVED:

src/lang/zh-CN.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export const zhCN = {
5151
LOCAL_SERVER_STOPPED: '本地服务器已停止',
5252
LOCAL_GATEWAY_ERROR: '本地网关错误',
5353
ERROR_STOPPING_LOCAL_SERVER: '停止本地服务器时出错',
54-
RUN_LOCAL_STARTING: '启动本地运行: stage={{stage}} port={{port}} debug={{debug}} watch={{watch}}',
54+
RUN_LOCAL_STARTING: '启动本地运行: stage={{stage}} debug={{debug}} watch={{watch}}',
5555

5656
// Function execution
5757
FUNCTION_REQUEST_RECEIVED: '本地服务器收到函数请求 -> {{method}} {{identifier}} ',

0 commit comments

Comments
 (0)