template: added cloudflare vite hybrid template

This commit is contained in:
dswbx
2025-11-21 17:55:24 +01:00
parent 9e7547e787
commit 000f8d20a8
27 changed files with 10092 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
/**
* This file gets automatically picked up by the bknd CLI. Since we're using cloudflare,
* we want to use cloudflare bindings (such as the database). To do this, we need to wrap
* the configuration with the `withPlatformProxy` helper function.
*
* Don't import this file directly in your app, otherwise "wrangler" will be bundled with your worker.
* That's why we split the configuration into two files: `bknd.config.ts` and `config.ts`.
*/
import { withPlatformProxy } from "bknd/adapter/cloudflare/proxy";
import config from "./config.ts";
export default withPlatformProxy(config, {
useProxy: true,
});