After racking my brains, my solution was to add this to the top of the problematic page: export const dynamic = 'force-dynamic'