/iblai-deploy
Deploy your ibl.ai app frontend to a hosting platform. Currently supports Vercel; extensible to other platforms.
Prerequisites
VERCEL_TOKENset iniblai.env- If missing or placeholder, ask the user once for their token and save it:
echo 'VERCEL_TOKEN=<token>' >> iblai.envToken creation: https://vercel.com/account/tokens
Deploy to Vercel
Run the CLI command:
iblai deploy vercelThis single command handles the full flow:
- Builds the frontend (
pnpm build) - Writes
out/vercel.jsonwithcleanUrls+ SPA rewrite - Deploys
out/to Vercel (public) - Disables Vercel authentication and password protection
- Updates
src-tauri/tauri.conf.jsondevUrlwith the deployment URL (if Tauri is set up) - Prints the deployment URL
When to Deploy
- Before running dev builds (
iblai builds dev,iblai builds ios dev,iblai builds android dev) so the WebView loads from a network URL - After frontend changes when iterating on dev builds
- When sharing a preview URL
Going Back to Local
To stop using the Vercel URL for mobile dev builds, remove devUrl from src-tauri/tauri.conf.json. The WebView will load local static files again.
Reference
iblai deploy vercel --help- Vercel token management