Deploying a React app with serve (CRA/Vite)
Hey!
Looking for a guide that helps with deploying a React app using serve instead of the default config.
Thanks!
Solution:Jump to solution
all my examples now use caddy, its a far more efficent web server than serve is, uses much less memory too!
https://github.com/brody192/vite-react-template
copy the nixpacks.toml and Caddyfile from this repo into yours.
if you have any custom build or start commands set in the service settings, please remove them....
6 Replies
Project ID:
N/A
N/A
Solution
all my examples now use caddy, its a far more efficent web server than serve is, uses much less memory too!
https://github.com/brody192/vite-react-template
copy the nixpacks.toml and Caddyfile from this repo into yours.
if you have any custom build or start commands set in the service settings, please remove them.
works great, thank you very much!
let me know if that works for you
it does it builds and deploys really fast too 🙂 how do I mark this thread as solved and select your answer?