feat: enable full section editing, background styling, animations and live file persistence

This commit is contained in:
Daniel S
2026-08-09 23:50:33 +02:00
parent 831a0d53f0
commit fc2017b210
9 changed files with 41 additions and 31 deletions

View File

@@ -40,6 +40,7 @@ export const POST: APIRoute = async ({ request }) => {
targetSection.settings = { ...targetSection.settings, ...settings };
await fs.mkdir(DATA_DIR, { recursive: true });
await fs.writeFile(livePath, JSON.stringify(config, null, 2), 'utf-8');
await fs.writeFile(draftPath, JSON.stringify(config, null, 2), 'utf-8');
return new Response(JSON.stringify({ success: true, settings: targetSection.settings }), { status: 200 });