feat: configurable history window (fixed|rolling) + offset hours (#655)
Implements #655.
Adds a configurable history window for start_datetime_utc in generation + forecast queries.
Two env vars control this: • NEXT_PUBLIC_HISTORY_START_TYPE = “rolling” or “fixed” • NEXT_PUBLIC_HISTORY_START_OFFSET_HOURS = numeric hour offset (default 48)
“rolling” = now - offset hours (existing behaviour) “fixed” = midnight UTC N days ago
getHistoryStartISO() now reads these envs, and both queries use it.
This allows Vercel preview / production to tune the history window without code changes.
Local build + typecheck pass. Defaults keep current behaviour.
@Sagarpillai is attempting to deploy a commit to the Open Climate Fix Team on Vercel.
A member of the Team first needs to authorize it.
Hey, @braddf Would love a review of this whenever you get a chance. Thank you in advance!