Skip to content
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
4 changes: 2 additions & 2 deletions docs/helpers/adapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { env, getRuntimeKey } from 'hono/adapter'

## `env()`

The `env()` function facilitates retrieving environment variables across different runtimes, extending beyond just Cloudflare Workers' Bindings. The value that can be retrieved with `env(c)` may be different for each runtimes.
The `env()` function facilitates retrieving environment variables across different runtimes, extending beyond just Cloudflare Workers' Bindings. The value that can be retrieved with `env(c)` may be different for each runtime.

```ts
import { env } from 'hono/adapter'
Expand Down Expand Up @@ -42,7 +42,7 @@ Supported Runtimes, Serverless Platforms and Cloud Services:
- AWS Lambda
- [Environment Variables on AWS Lambda](https://docs.aws.amazon.com/lambda/latest/dg/samples-blank.html#samples-blank-architecture)
- Lambda@Edge\
Environment Variables on Lambda are [not supported](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/add-origin-custom-headers.html) by Lambda@Edge, you need to use [Lamdba@Edge event](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html) as an alternative.
Environment Variables on Lambda are [not supported](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/add-origin-custom-headers.html) by Lambda@Edge, you need to use [Lambda@Edge event](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html) as an alternative.
- Fastly Compute\
On Fastly Compute, you can use the ConfigStore to manage user-defined data.
- Netlify\
Expand Down
2 changes: 1 addition & 1 deletion docs/helpers/cookie.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ const deletedCookie = deleteCookie(c, 'delicious_cookie')

## `__Secure-` and `__Host-` prefix

The Cookie helper supports `__Secure-` and `__Host-` prefix for cookies names.
The Cookie helper supports `__Secure-` and `__Host-` prefixes for cookie names.

If you want to verify if the cookie name has a prefix, specify the prefix option.

Expand Down
4 changes: 2 additions & 2 deletions docs/helpers/streaming.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ app.get('/stream', (c) => {

## `streamText()`

It returns a streaming response with `Content-Type:text/plain`, `Transfer-Encoding:chunked`, and `X-Content-Type-Options:nosniff` headers.
It returns a streaming response with `Content-Type: text/plain`, `Transfer-Encoding: chunked`, and `X-Content-Type-Options: nosniff` headers.

```ts
app.get('/streamText', (c) => {
Expand All @@ -47,7 +47,7 @@ app.get('/streamText', (c) => {

::: warning

If you are developing an application for Cloudflare Workers, a streaming may not work well on Wrangler. If so, add `Identity` for `Content-Encoding` header.
If you are developing an application for Cloudflare Workers, streaming may not work well on Wrangler. If so, add `Identity` for `Content-Encoding` header.

```ts
app.get('/streamText', (c) => {
Expand Down