/
opt
/
canhelp
/
node_modules
/
hono
/
dist
/
types
/
helper
/
ssg
/
/opt/canhelp/node_modules/hono/dist/types/helper/ssg
mkdir
upload
Name
Size
Mode
Actions
index.d.ts
234
0644
edit
dl
rm
middleware.d.ts
1358
0644
edit
dl
rm
plugins.d.ts
895
0644
edit
dl
rm
ssg.d.ts
3695
0644
edit
dl
rm
utils.d.ts
529
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/hono/dist/types/helper/ssg/plugins.d.ts
(895B)
import type { SSGPlugin } from './ssg'; /** * The default plugin that defines the recommended behavior. * * @experimental * `defaultPlugin` is an experimental feature. * The API might be changed. */ export declare const defaultPlugin: () => SSGPlugin; /** * The redirect plugin that generates HTML redirect pages for HTTP redirect responses for status codes 301, 302, 303, 307 and 308. * * When used with `defaultPlugin`, place `redirectPlugin` before it, because `defaultPlugin` skips non-200 responses. * * ```ts * // ✅ Will work as expected * toSSG(app, fs, { plugins: [redirectPlugin(), defaultPlugin()] }) * * // ❌ Will not work as expected * toSSG(app, fs, { plugins: [defaultPlugin(), redirectPlugin()] }) * ``` * * @experimental * `redirectPlugin` is an experimental feature. * The API might be changed. */ export declare const redirectPlugin: () => SSGPlugin;
Save
cmd:
run