mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-17 12:56:05 +00:00
updated examples: astro, nextjs, remix, bun, node
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import type { IncomingMessage } from "node:http";
|
||||
import type { App, CreateAppConfig } from "bknd";
|
||||
import { type App, type CreateAppConfig, registries } from "bknd";
|
||||
import { StorageLocalAdapter } from "media/storage/adapters/StorageLocalAdapter";
|
||||
|
||||
export type CloudflareBkndConfig<Env = any> = {
|
||||
mode?: "warm" | "fresh" | "cache" | "durable";
|
||||
@@ -47,3 +48,7 @@ export function nodeRequestToRequest(req: IncomingMessage): Request {
|
||||
headers
|
||||
});
|
||||
}
|
||||
|
||||
export function registerLocalMediaAdapter() {
|
||||
registries.media.register("local", StorageLocalAdapter);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user