cloudflare update assets dir

This commit is contained in:
dswbx
2025-02-13 09:12:08 +01:00
parent 8e72b5b615
commit 68277a68d5
3 changed files with 34 additions and 11 deletions

View File

@@ -12,6 +12,18 @@ export const cloudflare = {
path: "gh:bknd-io/bknd/examples/cloudflare-worker",
ref: true,
setup: async (ctx) => {
// overwrite assets directory
await overrideJson(
"wrangler.json",
(json) => ({
...json,
assets: {
directory: "node_modules/bknd/dist/static"
}
}),
{ dir: ctx.dir }
);
const db = await $p.select({
message: "What database do you want to use?",
options: [