Tutorial: How to modify an application to be served from a path instead of root (express.js example)

Опубликовано: 17 Февраль 2026
на канале: Codesphere
218
0

Path based routing allows you to connect multiple (independent) applications to the same domain by connecting different paths to different workspaces. This enables use cases like our website codesphere.com being served by one application and our blog codesphere.com/blog being served by an independent application with its own resources, separate code base and releases.

If your app was previously not configured to serve content from that route i.e. you connect two standalone applications that both serve content from the root path you will need to make changes so that the application runs in the path. In this video we show how that can be done for a basic express.js app.