Skip to content
Meeko
Type to search the guides and the API reference. Open it from any page with / or Ctrl K; move with the arrow keys and open a result with Enter.
Get started

Contents

On this page

Not translated yet

This page has not been translated into English yet, so it is shown in Spanish.

CloudflareAppContext

interfaz

Lo que recibe la fábrica de la aplicación, una vez por aislado.

ts
import type { CloudflareAppContext } from "@meekojs/meeko/cloudflare";

Source code src/cloudflare.ts:197

Declaración #

ts
interface CloudflareAppContext<Env> {
	readonly env: Env
	readonly platform: ServerPlatform<Env>
}

Type parameters #

Env

Bindings y variables del Worker.

Example #

ts
import type { CloudflareAppContext } from "@meekojs/meeko/cloudflare";

function createCloudflareApp({ env, platform }: CloudflareAppContext<Env>) {
  return createApp({ production: true, platform, assets: createCloudflareAssetReader({ binding: env.ASSETS, assets: manifest.assets ?? {} }) });
}

Propiedades #

env #

propiedad sólo lectura

readonly env: Env

Bindings y variables del Worker.

platform #

propiedad sólo lectura

readonly platform: ServerPlatform<Env>

Plataforma para la fábrica del runtime y el trabajo fuera de las peticiones.

See also #

Was this page helpful?

Add a comment

It is sent when you choose “Yes” or “No”. Only the page, your answer and the comment are stored: no cookies and no personal data.

0 of 2000 characters

Edit on GitHub: packages/meeko/src/cloudflare.ts