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

chore: Add Cloudflare Static Assets reference to serveStatic deprecation notice #3705

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
7 changes: 5 additions & 2 deletions src/adapter/cloudflare-workers/serve-static.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ export type ServeStaticOptions<E extends Env = Env> = BaseServeStaticOptions<E>
/**
* @deprecated
* `serveStatic` in the Cloudflare Workers adapter is deprecated.
* If you want to create an application serving static assets, please consider using Cloudflare Pages.
* You can start to create the Cloudflare Pages application with the `npm create hono@latest` command.
* You can serve static files directly using Cloudflare Static Assets.
* @see https://developers.cloudflare.com/workers/static-assets/
* Cloudflare Static Assets is currently in open beta. If this doesn't work for you,
* please consider using Cloudflare Pages. You can start to create the Cloudflare Pages
* application with the `npm create hono@latest` command.
*/
export const serveStatic = <E extends Env = Env>(
options: ServeStaticOptions<E>
Expand Down
Loading