Configure VibeKit with Cloudflare Sandboxes
createCloudflareProvider
function accepts these configuration options:
env
(required): Your Cloudflare Worker’s environment object containing the Sandbox
Durable Object bindinghostname
(required): Your Worker’s hostname used for generating preview URLs when exposing portswrangler dev
, only ports explicitly exposed in the Dockerfile are available for port forwarding. This is not an issue in production.
To test multiple ports locally, create a custom Dockerfile: