initial commit
Build & Deployment / Build & Deploy (push) Failing after 5s

This commit is contained in:
Raul Lugo
2026-08-10 17:55:26 +02:00
parent 6429ed3fa3
commit 4ced446c9c
74 changed files with 9242 additions and 30 deletions
+14
View File
@@ -0,0 +1,14 @@
export function getRsvpDeadline() {
const value = process.env.RSVP_DEADLINE
if (!value) return null
return value
}
export function isRsvpClosed(now = new Date()) {
const deadline = getRsvpDeadline()
if (!deadline) return false
const deadlineEnd = new Date(`${deadline}T23:59:59.999Z`)
return now > deadlineEnd
}