BUN 1.0 + Astro
Has anyone tried to deploy a Bun app yet? I am getting this error.
ERROR: failed to solve: process "/bin/bash -ol pipefail -c bun run build" did not complete successfully: exit code: 127
I assume that is because Railway hasn't got to this yet with Bun being so new?
26 Replies
Project ID:
43265ce1-d2dd-42a3-a5c7-1dba1da63c58
43265ce1-d2dd-42a3-a5c7-1dba1da63c58
I have just deployed a bun app and it's working fine (not with astro tho)
whats you package json
I got it working on another service by overriding the build command so I'm assuming i need to make a custom nixpack with the commands
maybe try with
bun --bun astro build
and start: bun --bun astro dev
I got a different error but still failed just failed with bun --bun astro build failed
its failing to build with docker
ok build command = bun install
new error :
Tried but this is the main problem
![No description](https://cdn.answeroverflow.com/1150533507785965588/image.png)
And I think nixpacks doesent support that version
thank you for trying
cookies, do you develop this astro app with bun 1.0 locally?
i do and it works perfectly on my machine and on another well known platoform i have it deployed
well known platform lol
what is the command you run locally to build your app
Vercel 🙂
i will say vercel is far better suited to host frontend websites
on railway you would need to use astro's node adapter
and astro calls its node adapter a "preview server"