Before you start
Step 1: Get the SDK
Each add-on lives on its own branch, always started frommain.
Step 2: Name your add-on file
Openrsbuild.config.ts and change one line near the top:
Step 3: Connect the preview to your account
Edit.env:
Your add-on saves real settings and permissions, so build against sandbox. To try it against production, use
https://apiweb.mile.app/ and https://v4web.mile.app/host-globals.js with a production token. Always change both addresses together.
Replace the API address that comes in
.env.example. It no longer answers, and the preview would show “not signed in”.Step 4: Open the preview
http://localhost:3001. The starter page shows your name, your organization and the add-on name. Your preview now talks to your real account, with the app’s own components and styles.
If the app was updated while the preview was running, stop it and run pnpm dev again. Reloading the page is not enough.