From 95ad0130e128ece71e55070807e8c4033bd876ae Mon Sep 17 00:00:00 2001 From: ambergristle <101149854+ambergristle@users.noreply.github.com> Date: Tue, 26 Nov 2024 08:34:54 -0800 Subject: [PATCH] chore: enrich deprecation notice Cloudflare Static Assets is now in open beta, promoted as a solution for SSR apps --- src/adapter/cloudflare-workers/serve-static.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/adapter/cloudflare-workers/serve-static.ts b/src/adapter/cloudflare-workers/serve-static.ts index b2f4954e7..6845ee28d 100644 --- a/src/adapter/cloudflare-workers/serve-static.ts +++ b/src/adapter/cloudflare-workers/serve-static.ts @@ -12,8 +12,11 @@ export type ServeStaticOptions = BaseServeStaticOptions /** * @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 = ( options: ServeStaticOptions