Guides
Frameworks - Tools

Cloudflare Workers

9min

You can use the routes of the cloudflare workers to expose your mini-app.

This section is being reviewed and expanded.

Hono is a minimal, ultrafast web framework for Cloudflare Workers, making it an excellent choice for serverless deployments.

Before starting this tutorial please create a Cloudflare account.

Initial Setup

  • Install de Cloudflare CLI
bash

  • Create a new worker project
bash

  • Add Hono as dependency
npm

  • Install the SDK
npm
yarn


Creating the Endpoint

  • Edit the src/index.js file:
index.js

  • Preview the worker locally
terminal


Deploying to Production

  • Your metadata endpoint will be available at
    • https://mini-app-metadata.workers.dev



Updated 29 Nov 2024
Doc contributor
Did this page help you?