fix: recursive with omitted join clauses

This commit is contained in:
dswbx
2025-11-14 22:17:27 +01:00
parent 079d613b2e
commit 16a3a67634
3 changed files with 11 additions and 8 deletions

View File

@@ -70,8 +70,9 @@ switch (dbType) {
if (example) {
const name = slugify(example);
configPath = `.configs/${slugify(example)}.wrangler.json`;
const exists = await readFile(configPath, "utf-8");
if (!exists) {
try {
await readFile(configPath, "utf-8");
} catch (_e) {
wranglerConfig.name = name;
wranglerConfig.d1_databases[0]!.database_name = name;
wranglerConfig.d1_databases[0]!.database_id = crypto.randomUUID();