export default async function handler(req: NextApiRequest, res: NextApiResponse) {
res.status(200).json({ redis: await ping() })
}
the redis.ts file
import { kv } from '@vercel/kv'
/** Test the connection to the Redis database. */
export async function ping(message?: string): Promise<string> {
return kv.ping([message])
}
When I do this, it works just fine, so I am pretty sure it's the redis.
export default async function handler(req: NextApiRequest, res: NextApiResponse) {
// res.status(200).json({ redis: await ping() })
res.status(200).send('hi')
}
I can't view the redis storage in my Vercel Dashboard.
Vercel Alum
Hi, ! Did you manage to get to the root issue of this?
No, I didn't. I was still waiting for the migration to finalize, but nothing happened yet.
Vercel Alum
Hey ! Sorry for the late follow-up on this.
Vercel KV has been fully sunset, existing stores were automatically migrated to Upstash Redis back in December 2024. It sounds like the migration may not have completed properly for your store, which would explain the 504 timeouts.