21 lines
1.0 KiB
Plaintext
21 lines
1.0 KiB
Plaintext
import { Env, MiddlewareHandler } from "../../types.js";
|
|
import { ServeStaticOptions as ServeStaticOptions$1 } from "../../middleware/serve-static/index.js";
|
|
//#region src/adapter/cloudflare-workers/serve-static.d.ts
|
|
/**
|
|
* @deprecated `hono/cloudflare-workers` will be removed in v5. Install `@hono/cloudflare-workers` and import from there instead.
|
|
*/
|
|
export type ServeStaticOptions<E extends Env = Env> = ServeStaticOptions$1<E> & {
|
|
namespace?: unknown;
|
|
manifest?: object | string;
|
|
};
|
|
/**
|
|
* @deprecated
|
|
* `serveStatic` in the Cloudflare Workers adapter is deprecated.
|
|
* 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 declare const serveStatic: <E extends Env = Env>(options?: ServeStaticOptions<E>) => MiddlewareHandler;
|
|
//#endregion |