a year ago
╔════════ Nixpacks v1.21.2 ═══════╗
║ setup │ nodejs18, npm-9x ║
║─────────────────────────────────║
║ install │ npm i ║
║─────────────────────────────────║
║ build │ npm run build ║
║─────────────────────────────────║
║ start │ ║
╚═════════════════════════════════╝
Error: No start command could be found
ⓘ Deployment information is only viewable by Project members and Railway admins.
8 Replies
a year ago
With create-react-app
a year ago
https://github.com/brody192/create-react-app-starter
Copy the nixpacks.toml and Caddyfile from this repo into yours
a year ago
Now my mistake is different
Error: Docker build failed
a year ago
Please attach your build logs -
a year ago
Nevermind, its vite implementation, now its working, thanks for the help, and sorry for the error
a year ago
https://github.com/brody192/vite-react-template
For Vite you would need that repo's nixpacks.toml and Caddyfile
If you are serving your site with Vite then you are running a development server, and you don't want to run development servers on Railway because they will cost you a lot.