Skip to content

Add allowed hosts to Vite preview config for Railway deployment#1

Open
railway-app[bot] wants to merge 1 commit intomainfrom
railway/code-change-AuXbdV
Open

Add allowed hosts to Vite preview config for Railway deployment#1
railway-app[bot] wants to merge 1 commit intomainfrom
railway/code-change-AuXbdV

Conversation

@railway-app
Copy link
Copy Markdown

@railway-app railway-app bot commented Mar 22, 2026

Problem

The Vite preview server blocks requests from neuron-second-brain-production.up.railway.app with a "Blocked request. This host is not allowed" error, making the deployed application inaccessible via its public Railway URL.

Solution

Added a preview.allowedHosts configuration to vite.config.ts that explicitly permits neuron-second-brain-production.up.railway.app and localhost, satisfying Vite's host validation and allowing the Railway deployment to serve requests normally.

Changes

  • Modified vite.config.ts

Generated by Railway

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 22, 2026

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

Project Deployment Actions Updated (UTC)
neuron-second-brain Ready Ready Preview, Comment Mar 22, 2026 8:41am

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.

0 participants