_typedev
Next 14 with bun 1.0.7
First of all thanks @Brody !
For anyone currently working with Bun/Next.js/Railway this might be helpful:
For me , builds with next.js kept failing, and I’ve tried everything a lot of different methods, and configurations
What worked was Brody’s solution to separate the nixplan from the railway.config into a nixpack.config
"nixpacksConfigPath": "apps/next/nixpacks.toml"
Notes:
passing in :nodejs_20 so builds work with next.js 14.0
Using the cmd bun run --cwd "apps/next" build
to path to the directory and then build from there. This will correctly link packages workspace:*
If builds are failing you might want to clean your bun.lockb from the root of your project
rm -f bun.lockb
then bun i
Successfully deploys 14 with bun 1.0.717 replies