import { defineEnvVars } from '@sveltejs/kit/env'; export const variables = defineEnvVars({ KNOTLESS_SERVE: { description: 'knotless-serve, which answers the XRPC queries the pages read.', schema: (value) => (value || 'http://127.0.0.1:2590').replace(/\/$/, '') }, KNOTLESS_NOW: { description: 'A moment the pages take as now, rather than the clock: the screenshots are taken at one.', schema: (value) => { if (!value) return null; const at = Date.parse(value); if (Number.isNaN(at)) throw new Error('KNOTLESS_NOW must be a time, as 2026-10-20T14:00:00Z'); return at; } } });