Support for wsl development

Open
#1,012 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
node.js, typescript

Research direction

Locate the dev-server startup entry point that prints the current bind address; no specific file or test is named in the issue. Check the existing host and port handling, then verify that the startup output shows localhost as the browser URL while retaining the actual bound address, including in the WSL2 context described.

Written by the indexing model from the issue text.

Description

Chore

Describe the chore

When starting the dev server, the console prints the following message:
Server is running on http://0.0.0.0:1337
0.0.0.0 is the bind address, but it is not a valid URL to access in a browser. This can be confusing, especially in environments like WSL2, where accessing the API must be done through:
http://localhost:1337
Improving the startup log to display a browser-friendly URL would enhance the developer experience.

Suggested improvement

const displayHost = host === "0.0.0.0" ? "localhost" : host;
console.log(`Server running at http://${displayHost}:${port} (bound to ${host})`);

Additional context

Running on WSL2 (Ubuntu)
Node v20
Initially thought server was unreachable because browser cannot open http://0.0.0.0:1337

Add any other context or screenshots that help clarify the task.

Dominant language
TypeScript
Stars
1.2k
Forks
223
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from supabase/postgres-meta

All issues in supabase/postgres-meta

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.