cli create: add default database name for cloudflare

This commit is contained in:
dswbx
2025-02-18 10:49:37 +01:00
parent 93cee4f8aa
commit dec382b49d
3 changed files with 9 additions and 2 deletions

View File

@@ -62,6 +62,8 @@ export const cloudflare = {
async function createD1(ctx: TemplateSetupCtx) {
const name = await $p.text({
message: "Enter database name",
initialValue: "data",
placeholder: "data",
validate: (v) => {
if (!v) {
return "Invalid name";