Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Canceled after 0s
28 lines
812 B
Plaintext
28 lines
812 B
Plaintext
import { toSSG as toSSG$1 } from "../../helper/ssg/ssg.js";
|
|
import "../../helper/ssg/index.js";
|
|
//#region src/adapter/bun/ssg.ts
|
|
const { write } = Bun;
|
|
/**
|
|
* @experimental
|
|
* `bunFileSystemModule` is an experimental feature.
|
|
* The API might be changed.
|
|
* @deprecated `hono/bun` will be removed in v5. Install `@hono/bun` and import from there instead.
|
|
*/
|
|
const bunFileSystemModule = {
|
|
writeFile: async (path, data) => {
|
|
await write(path, data);
|
|
},
|
|
mkdir: async () => {}
|
|
};
|
|
/**
|
|
* @experimental
|
|
* `toSSG` is an experimental feature.
|
|
* The API might be changed.
|
|
* @deprecated `hono/bun` will be removed in v5. Install `@hono/bun` and import from there instead.
|
|
*/
|
|
const toSSG = async (app, options) => {
|
|
return toSSG$1(app, bunFileSystemModule, options);
|
|
};
|
|
//#endregion
|
|
export { bunFileSystemModule, toSSG };
|