feat(web): set test open date
This commit is contained in:
@@ -2,4 +2,4 @@
|
||||
* Single source-of-truth for when registration opens.
|
||||
* Change this date to reschedule — all gating logic imports from here.
|
||||
*/
|
||||
export const REGISTRATION_OPENS_AT = new Date("2026-03-16T19:00:00+01:00");
|
||||
export const REGISTRATION_OPENS_AT = new Date("2026-03-11T10:30:00+01:00");
|
||||
|
||||
@@ -329,9 +329,14 @@ function LoginPage() {
|
||||
onClick={() => setIsSignup(true)}
|
||||
className="cursor-not-allowed text-sm text-white/30"
|
||||
disabled
|
||||
title="Registratie opent op 16 maart om 19:00"
|
||||
title={`Registratie opent op ${REGISTRATION_OPENS_AT.toLocaleString("nl-BE", { day: "numeric", month: "long", hour: "2-digit", minute: "2-digit" })}`}
|
||||
>
|
||||
Nog geen account? (opent 16 maart)
|
||||
Nog geen account? (opent{" "}
|
||||
{REGISTRATION_OPENS_AT.toLocaleString("nl-BE", {
|
||||
day: "numeric",
|
||||
month: "long",
|
||||
})}
|
||||
)
|
||||
</button>
|
||||
)}
|
||||
<Link to="/" className="text-sm text-white/60 hover:text-white">
|
||||
|
||||
@@ -351,8 +351,8 @@ export async function sendCancellationEmail(params: {
|
||||
|
||||
function reminderHtml(params: { firstName?: string | null }) {
|
||||
const greeting = params.firstName ? `Hoi ${params.firstName},` : "Hoi!";
|
||||
// Registration opens at 2026-03-16T19:00:00+01:00
|
||||
const openDateStr = "maandag 16 maart 2026 om 19:00";
|
||||
// Registration opens at 2026-03-11T10:30:00+01:00
|
||||
const openDateStr = "woensdag 11 maart 2026 om 10:30";
|
||||
const registrationUrl = `${baseUrl}/#registration`;
|
||||
|
||||
return `<!DOCTYPE html>
|
||||
|
||||
@@ -18,7 +18,7 @@ import { generateQrSecret } from "../lib/drinkkaart-utils";
|
||||
import { drinkkaartRouter } from "./drinkkaart";
|
||||
|
||||
// Registration opens at this date — reminders fire 1 hour before
|
||||
const REGISTRATION_OPENS_AT = new Date("2026-03-10T17:00:00+01:00");
|
||||
const REGISTRATION_OPENS_AT = new Date("2026-03-11T10:30:00+01:00");
|
||||
const REMINDER_WINDOW_START = new Date(
|
||||
REGISTRATION_OPENS_AT.getTime() - 60 * 60 * 1000,
|
||||
);
|
||||
|
||||
@@ -35,7 +35,7 @@ export const web = await TanStackStart("web", {
|
||||
// Cron secret for protected scheduled endpoints
|
||||
CRON_SECRET: getEnvVar("CRON_SECRET"),
|
||||
},
|
||||
// Fire every hour so the reminder check can run at 18:00 on 2026-03-16
|
||||
// Fire every hour so the reminder check can run at 09:30 on 2026-03-11
|
||||
crons: ["0 * * * *"],
|
||||
domains: ["kunstenkamp.be", "www.kunstenkamp.be"],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user