I have a backend endpoint on a NextJS server that gets records for a date input using Luxon as follows: activeDate = DateTime.fromISO(input.date.toISOString()).toUTC()
The endpoint then compares this interpretation of activeDate with records retrieved from the database to determine what records should be returned to a user.
This endpoint works in development (localhost), and my localhost instance works when I connect directly to my database, but my server running on a Vercel Preview deployment does not return any records from the same database unless activeDate is set to today.
Are there any gotchas when working with DateTimes server-side on Vercel, perhaps with Vercel Preview deployments specifically? Or maybe Luxon is not working the same when deployed?
Any feedback or ideas would be greatly appreciated!