added deploy button and github action deploy

This commit is contained in:
alyssadev 2023-09-17 06:34:37 +10:00
parent 2a3e092eea
commit 3e159ac82b
4 changed files with 26 additions and 1 deletions

View file

@ -64,7 +64,7 @@ async function get(host,path,auth) {
keys.forEach(element => paths += `${element.name}\n`);
return new Response(paths,{status:200})
}
if (!path) return Response.redirect("https://aly-smith.carrd.co",301)
if (!path) return Response.redirect(REDIR_URL,301)
path = path.toLowerCase()
const dest = await KV.get(path)
if (dest) return Response.redirect(dest, 302)