Skip to content

Commit

Permalink
chore(cloudflare-workers): Add Cloudflare Static Assets reference to …
Browse files Browse the repository at this point in the history
…serveStatic deprecation notice (#3705)

* chore: enrich deprecation notice

Cloudflare Static Assets is now in open beta, promoted as a solution for SSR apps

* chore: lint
  • Loading branch information
ambergristle authored Dec 3, 2024
1 parent 4af04a6 commit 80c7e22
Showing 1 changed file with 5 additions and 2 deletions.
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

0 comments on commit 80c7e22

Please sign in to comment.