Files
SnowLuma/.pnpm-store/v11/files/69/ab00e54389ff0a564610334021179646bdebaca2ca930a0cf76bfe927a4edd83402090ee790abdfadd0f469830e3942e5c53eb95c3cbd7b4bd4c8ae17914f4
T
TanTan 2a69b23b47
Dev Build / cleanup (push) Waiting to run
Dev Build / typecheck (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:27:07 +08:00

29 lines
943 B
Plaintext

import { SSGPlugin } from "./ssg.js";
//#region src/helper/ssg/plugins.d.ts
/**
* 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;
//#endregion