Multiple apps on a single domain hosted on sub-paths
Blog post from Convex
Ian Macartney discusses the process of deploying multiple applications on a single domain using sub-paths, specifically focusing on a Vite-based React app with client-side routing hosted on Vercel. He explains how to configure the app to be served from a custom sub-path by adjusting the Vite build command, React Router settings, and the vercel.json file, which handles rewrites and redirects. Macartney also touches on integrating the Convex backend platform, which can be deployed simultaneously with the frontend app, and offers insights into managing multiple sub-path configurations across different domains without using serverless functions or migrating to Next.js. The approach allows for hosting the same application on different sub-paths and domains effectively, albeit with some confusion regarding routing that works unexpectedly well, which Macartney invites the community to discuss further.