Skip to content

Fix Nitro build configuration#7

Open
railway-app[bot] wants to merge 1 commit into
mainfrom
railway/code-change-nUnMJH
Open

Fix Nitro build configuration#7
railway-app[bot] wants to merge 1 commit into
mainfrom
railway/code-change-nUnMJH

Conversation

@railway-app
Copy link
Copy Markdown

@railway-app railway-app Bot commented Apr 20, 2026

Problem

The build was failing with copy /app/dist: not found because the Nitro Vite plugin was added to vite.config.ts without any corresponding nitro.config.ts. Nitro attempted to copy /app/dist during the build before Vite had finished generating that directory.

Solution

Removed the nitro() plugin import from vite.config.ts and dropped the nitro package from package.json. This is a frontend-only React app using TanStack Start, which handles its own build pipeline — Nitro serves no purpose here and was only introduced by the errant "add nitro plugin" commit.

Changes

  • Modified vite.config.ts
  • Modified package.json

Generated by Railway

@denimcodes denimcodes force-pushed the main branch 2 times, most recently from d225508 to d1d75af Compare April 20, 2026 15:05
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