site.serveCommand in base44/config.jsonc, dev also spawns your frontend dev server and manages both processes together.
Learn more about local development, including setup and supported features, in the Local development guide.
Usage
Flags
Frontend dev server
Ifsite.serveCommand is set in your project config, dev runs that command from the project root and:
- Injects
VITE_BASE44_APP_ID(your app’s id) andVITE_BASE44_APP_BASE_URL(the local backend URL) into the frontend process’s environment, so the SDK auto-points at the local backend. - Streams the frontend’s output alongside the backend’s, prefixed with
[backend]and[frontend]. - Shuts both processes down together when you press Ctrl-C, and tears the backend down if the frontend exits on its own.
site.serveCommand is not set, dev runs only the backend and you can start your frontend in a separate terminal.
See also
- Local development: Setup and supported features
- Project structure:
site.serveCommandand other config fields deploy: Deploy all project resources to Base44