TheCodingTree 🌳
TheCodingTree 🌳
TTCTheo's Typesafe Cult
Created by TheCodingTree 🌳 on 1/15/2024 in #questions
First time running uploadthing in production (Vercel)
Apologize if this question has already been answered here, i've already searched Google and the questions channel but have not found a good answer. I just pushed my first deployment of uploadthing to my vercel production app and I am getting the following error when I try to upload an image: [UT] Call unsuccessful after 4 tries. Retrying in 8 seconds... I verified that the file was successfully uploaded to my uploadthing account, i've set UPLOADTHING_URL to my public facing vercel domain, and set the callbackUrl in my router config to ${process.env.NEXT_PUBLIC_URL}/api/uploadthing/ (Note: I had to do this because I am running my stack via lando locally) using the following:
export const { GET, POST } = createNextRouteHandler({
router: ourFileRouter,
config: {
callbackUrl: `${process.env.NEXT_PUBLIC_URL}/api/uploadthing/`,
},
});
export const { GET, POST } = createNextRouteHandler({
router: ourFileRouter,
config: {
callbackUrl: `${process.env.NEXT_PUBLIC_URL}/api/uploadthing/`,
},
});
Any tips on what I should look for next?
2 replies