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.

MeekoServerConfig

tipo

Destino de ejecución de meeko build, una unión discriminada por adapter. Cada adaptador escribe en .meeko/output/<adapter>/; --adapter de la CLI tiene prioridad.

ts
import type { MeekoServerConfig } from "@meekojs/meeko/build";

Source code src/modules/define-meeko-config.ts:95

Declaración #

ts
type MeekoServerConfig =
| ({
		readonly adapter: 'node'
		readonly host?: string
		readonly port?: number
  } & ServerResponseConfig)
| ({
		readonly adapter: 'cloudflare'
		readonly name?: string
		readonly socketClassName?: string
		readonly compatibilityDate?: string
		readonly wrangler?: Readonly<Record<string, unknown>>
  } & ServerResponseConfig)
| ({
		readonly adapter: 'deno'
  } & ServerResponseConfig)
| ({
		readonly adapter: 'bun'
  } & ServerResponseConfig)
| {
		readonly adapter: 'static'
		readonly contentSecurityPolicy?: ContentSecurityPolicy
		readonly headers?: Readonly<Record<string, string>>
		readonly headerFiles?: readonly StaticHeaderFile[]
  }

Example #

ts
import { defineMeekoConfig } from "@meekojs/meeko/framework";

export default defineMeekoConfig({
  server: { adapter: "cloudflare", name: "mi-app", wrangler: { vars: { MEEKO_PUBLIC_ORIGIN: "https://mi-app.example" } } },
});

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/modules/define-meeko-config.ts