feat: enable full section editing, background styling, animations and live file persistence
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user