skybridge build to compile your app, and skybridge start to run it in production mode.
Build for Production
Before deploying, you need to build your application. Run the build command from your project root:skybridge build command, which compiles your widgets and server code for production.
Start Production Server
Once your app is built, start the production server:skybridge start command, which starts your production server.
How it works
The production server runs your compiled application from thedist/ directory with NODE_ENV=production. Unlike the development server, it:
- Serves pre-built assets - Widgets and styles are served as static files from
/assets(compiled duringskybridge build) - MCP endpoint - Exposes your MCP server at
/mcpfor ChatGPT to connect to - No dev tools - DevTools and Vite dev server are excluded in production for better performance
- Optimized rendering - Uses production templates that load pre-bundled JavaScript and CSS files
https://your-domain.com/mcp) to access your tools and widgets.
