Deploying a React app with serve (CRA/Vite)
claudius10
HOBBYOP

2 years ago

Hey!

Looking for a guide that helps with deploying a React app using serve instead of the default config.

Thanks!

5 Replies

claudius10
HOBBYOP

2 years ago

N/A


2 years ago

all my examples now use caddy, its a far more efficent web server than serve is, uses much less memory too!

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.


claudius10
HOBBYOP

2 years ago

works great, thank you very much!


2 years ago

let me know if that works for you


claudius10
HOBBYOP

2 years ago

it does it builds and deploys really fast too 🙂 how do I mark this thread as solved and select your answer?


Loading...