Guides
Local Development
Set up the Superbridge Widget for local development
To use the Superbridge Widget during local development, you need to pass a localDevelopmentApiKey prop.
import { Widget } from "@superbridge/widget";
<Widget localDevelopmentApiKey="your-api-key" />You can find your local development API key in the Rollie dashboard.
The
localDevelopmentApiKeyis intended for local development only. Do not expose it in production builds. Make sure it is excluded from your production bundle — for example, by loading it from an environment variable that is only set in development.In production, the widget picks up your Rollie configuration from the domain it loads into, so no API key is required.