How SPAs are served?
ddtch
FREEOP

10 months 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

10 months ago

N/A


brody
EMPLOYEE

10 months ago

the site is built and then served with caddy


ddtch
FREEOP

10 months ago

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


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


brody
EMPLOYEE

10 months ago

no not NGINX 😦


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


brody
EMPLOYEE

10 months ago

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


Oh that's cool! Good to know.


brody
EMPLOYEE

10 months ago

!s


Status changed to Solved brody 10 months ago


Loading...