Skip to content

Conversation

@webdevcody
Copy link
Collaborator

Fixes #536

Summary

Adds configurable host binding for both the backend server and Vite dev server. The hostname can now be configured via the HOST environment variable, defaulting to 0.0.0.0 to listen on all network interfaces.

Changes

  • Added HOST environment variable (default: 0.0.0.0) to allow binding to specific network interfaces
  • Updated server to listen on configurable host instead of hardcoded localhost
  • Updated Vite dev server to respect HOST environment variable
  • Enhanced server startup banner to display listening address
  • Updated .env.example and CLAUDE.md documentation

Usage

# Listen on all interfaces (default)
npm run dev

# Listen on localhost only
HOST=127.0.0.1 npm run dev

# Listen on specific IP
HOST=192.168.1.100 npm run dev

🤖 Generated with Claude Code

Rik Smale and others added 4 commits January 16, 2026 19:18
- Add HOST environment variable (default: 0.0.0.0) to allow binding to specific network interfaces
- Update server to listen on configurable host instead of hardcoded localhost
- Update Vite dev server to respect HOST environment variable
- Enhanced server startup banner to display listening address
- Updated .env.example and CLAUDE.md documentation

Fixes #536

Co-authored-by: Web Dev Cody <webdevcody@users.noreply.github.com>
@coderabbitai
Copy link

coderabbitai bot commented Jan 17, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @webdevcody, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly improves the network configuration flexibility of the application by allowing users to specify the host binding for both the backend and Vite development servers via a new HOST environment variable. This change moves from a restrictive localhost binding to a more versatile 0.0.0.0 default, which is crucial for deployments in environments like Docker or for accessing the application from different machines on a network. The update also includes clearer server startup messages and comprehensive documentation for the new configuration.

Highlights

  • Configurable Host Binding: Introduced a configurable HOST environment variable for both the backend and Vite dev servers, defaulting to 0.0.0.0 for broader network accessibility.
  • Server Binding Update: Updated the backend server to bind to the specified HOST instead of a hardcoded localhost.
  • Enhanced Server Startup Banner: Enhanced the server startup banner to clearly display the address the server is listening on.
  • Documentation Updates: Updated relevant documentation (.env.example, CLAUDE.md) to reflect the new HOST configuration option.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@webdevcody webdevcody merged commit 26aaef0 into v0.12.0rc Jan 17, 2026
6 checks passed
@webdevcody webdevcody deleted the claude/issue-536-20260117-0132 branch January 17, 2026 02:22
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a configurable host binding for both the backend server and the Vite dev server via the HOST environment variable. The changes are well-implemented and include updates to documentation and example files. My main feedback is a suggestion to improve the handling of IPv6 addresses in the server startup banner to ensure the generated URLs are always valid.

: 'enabled'
: 'disabled';
const portStr = port.toString().padEnd(4);
const hostDisplay = host === '0.0.0.0' ? 'localhost' : host;
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The logic for hostDisplay doesn't correctly handle IPv6 addresses for URL formatting in the startup banner. This can lead to broken links.

  1. The "listen on all" IPv6 address :: is not mapped to localhost.
  2. Other IPv6 addresses (e.g., ::1) are not wrapped in square brackets, which is required for URLs (e.g., http://[::1]:3008).

The suggested code fixes the first point. For a more complete solution, consider also handling the bracketing for all IPv6 addresses.

Suggested change
const hostDisplay = host === '0.0.0.0' ? 'localhost' : host;
const hostDisplay = host === '0.0.0.0' || host === '::' ? 'localhost' : host;

Sign up for free to 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.

2 participants