uploadthing's dev server doesn't start

I have a problem where the uploadthing's dev server never starts when uploading files in local development which leads to .onUploadComplete never triggering. File uploads fine. Middleware runs fine. Clients logs the file(s) with key, name, size, url fields just fine. I never get these messages in the console like I do when I use it the same way with NextJS
[UT] SIMULATING FILE UPLOAD WEBHOOK CALLBACK http://localhost:3000/api/uploadthing?slug=imageUploader [UT] UploadThing dev server is now running!
It's a Vite React client and an Express server Client is on port 5173, server is on port 3000 I have tried running the server on a different port and setting the UPLOADTHING_URL env variable to both http://localhost:<PORT> and http://localhost:<PORT>/api/uploadthing I have tried setting the env variables in the config for createUploadthingExpressHandler I've even tried waiting for a couple of minutes just in case the uploadthing's dev server starts up slowly for some reason. https://github.com/mrperrytpx/uploadthing-vite-express/tree/main Unsure what else I can do to make it work. If anyone's done uploadthing with express before or anyone who might have an idea what's wrong, I'd really appreciate the help.
GitHub
GitHub - mrperrytpx/uploadthing-vite-express
Contribute to mrperrytpx/uploadthing-vite-express development by creating an account on GitHub.
Solution:
Alright I figured it out. I had to set NODE_DEV="development" in my server's .env...
Jump to solution
1 Reply
Solution
Perryx
Perryx14mo ago
Alright I figured it out. I had to set NODE_DEV="development" in my server's .env
Want results from more Discord servers?
Add your server