How SPAs are served?
ddtch
FREEOP

a year ago

hey folks I have a question. how exactly railway serves react apps? for example I have a simple app with routes like 3 pages. when I pushed it to railway it serves it with like bun serve, or any other command, OR it build the app and serves static files in the container?

Solved

9 Replies

ddtch
FREEOP

a year ago

N/A


a year ago

the site is built and then served with caddy


ddtch
FREEOP

a year ago

ok. can I somehow apply own config on caddy ? or for example even change it to nginx ?


a year ago

You can write your own dockerfile to wrap your service with nginx or any other HTTP server.


a year ago

no not NGINX 😦


a year ago

It won't be Brody approved, but you can do it 😉


a year ago

For Railpack, you can just have a Caddyfile in your repo and Railpack will use that


a year ago

Oh that's cool! Good to know.


a year ago

!s


Status changed to Solved brody 12 months ago


Loading...