Skip to content

Fix startup message to show correct API endpoint - #588

Closed
hotlong with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-api-endpoint-issue
Closed

Fix startup message to show correct API endpoint#588
hotlong with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-api-endpoint-issue

Conversation

CopilotAI commented Feb 10, 2026

Copy link
Copy Markdown
Contributor

Startup message incorrectly displayed API at http://localhost:3000/ when actual endpoint is /api/v1. Root path redirects to Studio UI in dev mode, causing user confusion.

Change

  • Updated packages/cli/src/utils/format.ts:191 to display /api/v1 instead of /

Before

➜ API: http://localhost:3000/
➜ Studio: http://localhost:3000/_studio/

After

➜ API: http://localhost:3000/api/v1
➜ Studio: http://localhost:3000/_studio/
Original prompt

pnpm dev 现在启动服务后 访问 http://localhost:3000/api/v1 没有进入 api 地址,而是显示了 studio

The user has attached the following file paths as relevant context:

  • .github/copilot-instructions.md

Created from VS Code.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@vercel

vercelBot commented Feb 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

ProjectDeploymentActionsUpdated (UTC)
objectstack-playReadyReadyPreview, CommentFeb 10, 2026 0:23am
specReadyReadyPreview, CommentFeb 10, 2026 0:23am

Request Review

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
CopilotAI changed the title [WIP] Fix API endpoint routing issue for local developmentFix startup message to show correct API endpointFeb 10, 2026
CopilotAI requested a review from hotlongFebruary 10, 2026 12:24
@hotlong
hotlong marked this pull request as ready for review February 10, 2026 13:33
CopilotAI review requested due to automatic review settings February 10, 2026 13:33
@hotlonghotlong closed this Feb 10, 2026

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the CLI “Server is ready” banner to display the correct REST API base endpoint (/api/v1) instead of the root path (/), which redirects to Studio in dev mode and can mislead users.

Changes:

  • Adjusted the printed API URL in the CLI startup message from base + '/' to base + '/api/v1'.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@hotlong