react / react/metro

Expose a way to change the host in config

Open
#1,389 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

👋🏻 Good First Issue Type: Feature Request
Dominant language
JavaScript
Stars
5.6k
Forks
696
Avg merge
8m
Merged PRs (30d)
7

Description

Do you want to request a feature or report a bug?
Feature

What is the current behavior?
I can only customize host with localhost, tunnel or lan

What is the expected behavior?
I want to be able to provide an alias for localhost for local web development. I don't want to be limited to only use localhost:{port}. This would be similar to using server.host as vite does, or webpack does with devServer.host

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.

Research direction

The issue does not name files or tests. Start by locating Metro's host configuration entry point and trace how the existing localhost, tunnel, and lan values are handled. Done means local web development can accept a user-provided host alias and the behavior is covered by appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system, devtools, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.