mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 12:37:20 +00:00
template: added cloudflare vite code template
This commit is contained in:
7
examples/cloudflare-vite-code/src/worker/index.ts
Normal file
7
examples/cloudflare-vite-code/src/worker/index.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { serve } from "bknd/adapter/cloudflare";
|
||||
import config from "../../config.ts";
|
||||
|
||||
export default serve(config, () => ({
|
||||
// since bknd is running code-only, we can use a pre-initialized app instance if available
|
||||
warm: true,
|
||||
}));
|
||||
Reference in New Issue
Block a user