How do I serve my frontend from /frontend instead of the root directory?

I am working on a brand new Vite project using Svelte (not SvelteKit) and noticed that when I start the development server with the default command, it serves the application at the root (http://localhost:3000/). I want to modify this behavior so that the frontend is served from a subdirectory, specifically http://localhost:3000/frontend. I am looking for guidance on what configuration changes or adjustments in the project setup are necessary to achieve this. Below is an example of a modified run command I attempted:

pnpm start-custom

Could someone explain how to modify the build or server settings to properly serve the app from the /frontend path?

hey, try addin base:‘/frontend/’ in your vite.config.js and see if it flips the route. did you update any assests refs accordingly? curious how it’s working out on your end, any othr tweaks you found necessary?