Skip to content

Configure Vite host and allowed domains for port 4321 - #478

Open
ercmine wants to merge 1 commit into
mainfrom
codex/fix-vite-config-for-allowed-hosts
Open

Configure Vite host and allowed domains for port 4321#478
ercmine wants to merge 1 commit into
mainfrom
codex/fix-vite-config-for-allowed-hosts

Conversation

@ercmine

@ercmine ercmine commented Mar 31, 2026

Copy link
Copy Markdown
Owner

Motivation

  • The Vite dev server was blocking requests due to Host header checks and was not reachable from the expected perbug domains, so the config needs to allow those hosts and bind to an external address/port.

Description

  • Updated eatdoge/vite.config.ts to set server.host to 0.0.0.0, server.port to 4321, and server.allowedHosts to ['perbug.com', 'www.perbug.com', 'app.perbug.com'].
  • Added a matching preview block with the same host, port, and allowedHosts so preview mode behaves identically.
  • Preserved the existing plugins: [react()] configuration and removed the previous fs.allow block.

Testing

  • Ran cd eatdoge && timeout 12s npm run dev -- --host 0.0.0.0 --port 4321 and Vite reported ready on port 4321 (success).
  • Started a background dev process with cd eatdoge && nohup npm run dev -- --host 0.0.0.0 --port 4321 >/tmp/eatdoge-vite.log 2>&1 & and confirmed the process and logs show Vite ready (success).

Codex Task

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant