Refresh Configs with browser editing and source inspection

This commit is contained in:
2026-09-18 11:02:22 -04:00
parent ec51e38312
commit ef8ff69d17
13 changed files with 944 additions and 395 deletions
@@ -18,6 +18,10 @@ export async function POST({ params, request }: { params: { id: string }; reques
const script = getScript(scriptId);
if (!script) return json({ ok: false, error: 'not found' }, { status: 404 });
if ((script.kind === 'config' || script.kind === 'baseline') && findRunningBetaForScript(scriptId)) {
return json({ ok: false, error: 'Finish the active beta before saving a config version.' }, { status: 409 });
}
const form = await request.formData();
const notes = form.get('notes') ? String(form.get('notes')) : undefined;
const file = form.get('content');