Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Localizations sync with #1166 #1167

Merged
merged 6 commits into from
Dec 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions site/docs/es/guide/deployment-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,26 +258,26 @@ El segundo parámetro pasado a `webhookCallback` ([API reference](/ref/core/webh
Debido a cómo funciona este enfoque, normalmente necesitamos un adaptador para cada framework pero, dado que algunos frameworks comparten una interfaz similar, hay adaptadores que se sabe que funcionan con múltiples frameworks.
A continuación se muestra una tabla con los adaptadores disponibles actualmente, los frameworks o APIs con los que se sabe que funcionan y los tiempos de ejecución en los que están disponibles.

| Adapter | Framework/API/Runtime |
| ------------------ | ------------------------------------------------------------------------------ |
| `aws-lambda` | AWS Lambda Functions |
| `aws-lambda-async` | AWS Lambda Functions with `async`/`await` |
| `azure` | Azure Functions |
| `bun` | `Bun.serve` |
| `cloudflare` | Cloudflare Workers |
| `cloudflare-mod` | Cloudflare Module Workers |
| `express` | Express, Google Cloud Functions |
| `fastify` | Fastify |
| `hono` | Hono |
| `http`, `https` | Node.js `http`/`https` modules, Vercel |
| `koa` | Koa |
| `next-js` | Next.js |
| `nhttp` | NHttp |
| `oak` | Oak |
| `serveHttp` | `Deno.serveHttp` |
| `std/http` | `Deno.serve`, `std/http`, `Deno.upgradeHttp`, `Fresh`, `Ultra`, `Rutt`, `Sift` |
| `sveltekit` | SvelteKit |
| `worktop` | Worktop |
| Adapter | Framework/API/Runtime |
| ------------------ | --------------------------------------------------------------------------------------------------- |
| `aws-lambda` | AWS Lambda Functions |
| `aws-lambda-async` | AWS Lambda Functions with `async`/`await` |
| `azure` | Azure Functions |
| `bun` | `Bun.serve` |
| `cloudflare` | Cloudflare Workers |
| `cloudflare-mod` | Cloudflare Module Workers |
| `express` | Express, Google Cloud Functions |
| `fastify` | Fastify |
| `hono` | Hono |
| `http`, `https` | Node.js `http`/`https` modules, Vercel Serverless |
| `koa` | Koa |
| `next-js` | Next.js |
| `nhttp` | NHttp |
| `oak` | Oak |
| `serveHttp` | `Deno.serveHttp` |
| `std/http` | `Deno.serve`, `std/http`, `Deno.upgradeHttp`, `Fresh`, `Ultra`, `Rutt`, `Sift`, Vercel Edge Runtime |
| `sveltekit` | SvelteKit |
| `worktop` | Worktop |

### Webhook Reply

Expand Down
40 changes: 20 additions & 20 deletions site/docs/guide/deployment-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,26 +257,26 @@ The second parameter passed to `webhookCallback` ([API reference](/ref/core/webh
Because of how this approach works, we usually need an adapter for each framework but, since some frameworks share a similiar interface, there are adapters that are known to work with multiple frameworks.
Below is a table containing the currently available adapters, and the framework, APIs, or runtimes they are known to work with.

| Adapter | Framework/API/Runtime |
| ------------------ | ------------------------------------------------------------------------------ |
| `aws-lambda` | AWS Lambda Functions |
| `aws-lambda-async` | AWS Lambda Functions with `async`/`await` |
| `azure` | Azure Functions |
| `bun` | `Bun.serve` |
| `cloudflare` | Cloudflare Workers |
| `cloudflare-mod` | Cloudflare Module Workers |
| `express` | Express, Google Cloud Functions |
| `fastify` | Fastify |
| `hono` | Hono |
| `http`, `https` | Node.js `http`/`https` modules, Vercel |
| `koa` | Koa |
| `next-js` | Next.js |
| `nhttp` | NHttp |
| `oak` | Oak |
| `serveHttp` | `Deno.serveHttp` |
| `std/http` | `Deno.serve`, `std/http`, `Deno.upgradeHttp`, `Fresh`, `Ultra`, `Rutt`, `Sift` |
| `sveltekit` | SvelteKit |
| `worktop` | Worktop |
| Adapter | Framework/API/Runtime |
| ------------------ | --------------------------------------------------------------------------------------------------- |
| `aws-lambda` | AWS Lambda Functions |
| `aws-lambda-async` | AWS Lambda Functions with `async`/`await` |
| `azure` | Azure Functions |
| `bun` | `Bun.serve` |
| `cloudflare` | Cloudflare Workers |
| `cloudflare-mod` | Cloudflare Module Workers |
| `express` | Express, Google Cloud Functions |
| `fastify` | Fastify |
| `hono` | Hono |
| `http`, `https` | Node.js `http`/`https` modules, Vercel Serverless |
| `koa` | Koa |
| `next-js` | Next.js |
| `nhttp` | NHttp |
| `oak` | Oak |
| `serveHttp` | `Deno.serveHttp` |
| `std/http` | `Deno.serve`, `std/http`, `Deno.upgradeHttp`, `Fresh`, `Ultra`, `Rutt`, `Sift`, Vercel Edge Runtime |
| `sveltekit` | SvelteKit |
| `worktop` | Worktop |

### Webhook Reply

Expand Down
11 changes: 10 additions & 1 deletion site/docs/hosting/vercel.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,21 @@ You can still use the core grammY package and a number of plugins, but others ma

Currently, we don't have a comprehensive list of compatible plugins, so you need to test it by yourself.

Add this line to snippet above if you want to switch to Edge Functions:
Use this snippet below if you want to switch to Edge Functions:

```ts
import { Bot, webhookCallback } from "grammy";

const token = process.env.BOT_TOKEN;
if (!token) throw new Error("BOT_TOKEN is unset");

const bot = new Bot(token);

export const config = {
runtime: "edge",
};

export default webhookCallback(bot, "std/http");
```

:::
Expand Down
40 changes: 20 additions & 20 deletions site/docs/id/guide/deployment-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,26 +263,26 @@ Karena menggunakan pendekatan dengan cara tersebut, biasanya kita membutuhkan se
Tetapi, berhubung beberapa framework memiliki interface yang mirip, kita bisa menggunakan adapter yang sama untuk beberapa framework sekaligus.
Di bawah ini adalah tabel berisi berbagai macam adapter yang tersedia beserta jenis framework, API, dan runtime yang diketahui berfungsi dengan baik di grammY.

| Adapter | Framework/API/Runtime |
| ------------------ | ------------------------------------------------------------------------------ |
| `aws-lambda` | AWS Lambda Functions |
| `aws-lambda-async` | AWS Lambda Functions dengan `async`/`await` |
| `azure` | Azure Functions |
| `bun` | `Bun.serve` |
| `cloudflare` | Cloudflare Workers |
| `cloudflare-mod` | Cloudflare Module Workers |
| `express` | Express, Google Cloud Functions |
| `fastify` | Fastify |
| `hono` | Hono |
| `http`, `https` | Node.js `http`/`https` modules, Vercel |
| `koa` | Koa |
| `next-js` | Next.js |
| `nhttp` | NHttp |
| `oak` | Oak |
| `serveHttp` | `Deno.serveHttp` |
| `std/http` | `Deno.serve`, `std/http`, `Deno.upgradeHttp`, `Fresh`, `Ultra`, `Rutt`, `Sift` |
| `sveltekit` | SvelteKit |
| `worktop` | Worktop |
| Adapter | Framework/API/Runtime |
| ------------------ | --------------------------------------------------------------------------------------------------- |
| `aws-lambda` | AWS Lambda Functions |
| `aws-lambda-async` | AWS Lambda Functions dengan `async`/`await` |
| `azure` | Azure Functions |
| `bun` | `Bun.serve` |
| `cloudflare` | Cloudflare Workers |
| `cloudflare-mod` | Cloudflare Module Workers |
| `express` | Express, Google Cloud Functions |
| `fastify` | Fastify |
| `hono` | Hono |
| `http`, `https` | Node.js `http`/`https` modules, Vercel Serverless |
| `koa` | Koa |
| `next-js` | Next.js |
| `nhttp` | NHttp |
| `oak` | Oak |
| `serveHttp` | `Deno.serveHttp` |
| `std/http` | `Deno.serve`, `std/http`, `Deno.upgradeHttp`, `Fresh`, `Ultra`, `Rutt`, `Sift`, Vercel Edge Runtime |
| `sveltekit` | SvelteKit |
| `worktop` | Worktop |

### Webhook Reply

Expand Down
Loading
Loading