Using Caddy + Vite + React in a monorepo?

https://github.com/brody192/vite-react-template
The example has the caddyfiles + nixpack config in the route. But what if i have a subfolder in the repo that has the required files? Railway wont detect those files unless i set the root to that subfolder, but I require other packages to be built for this to work!

4 Replies

ff320aca-11bb-4255-98c5-a5c2833a3484


brody
EMPLOYEE

9 months ago

you would then need custom build and start commands to build the app and start it


there is nowhere for me to config what nixpacks file to use in a sub folder? The only way for the nixpacks file to be detected would be to set the root folder but that breaks other required projects


brody
EMPLOYEE

9 months ago

there is the NIXPACKS_CONFIG_FILE variable, but I don't see why that is needed to set custom build and start commands?


Loading...