Monorepo example

Hi, I’m wondering how to deploy multiple static websites to one domain.

e.g:

packages/app1

npm run build

packages/app2

npm run build

when both are built, I want to deploy app1 to my.domain
and app2 to my.domain/app2

how can I do this?

I see there’s something called statics which looks like what I want, but not entirely sure how to get it working for static sites.

also plan on adding a remix site later too, but for now just static sites.

1 Like

Have you checked out this tutorial for deploying static sites with a small web server?

If you’re running your build locally, you would just need to change the Dockerfile to look something like

FROM pierrezemb/gostatic
COPY ./packages/app1 /srv/http/app1
COPY ./packages/app2 /srv/http/app2