mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-16 20:37:21 +00:00
cloudflare update assets dir
This commit is contained in:
@@ -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: [
|
||||
|
||||
Reference in New Issue
Block a user