github-actions[bot]
Update from GitHub Actions
b68afdb
raw
history blame contribute delete
644 Bytes
import{d as t,r}from"../nitro/nitro.mjs";import{a as e}from"../_/storage.mjs";import"node:http";import"node:https";import"node:events";import"node:buffer";import"node:fs";import"node:path";import"node:crypto";import"node:url";const o=t((async t=>{try{const{data:o,driver:s,config:i}=await r(t);if(!s||!i)throw new Error("Missing driver configuration");const n=e(s,i);if(!n)throw new Error("Failed to create storage driver");return await n.setItem("backup",JSON.stringify(o)),{success:!0,message:"Backup completed successfully"}}catch(t){return new Response(JSON.stringify({success:!1,message:t.message}),{status:500})}}));export{o as default};