uploadthing in a server side environment
I have followed the example provided in the github (backend-adapters) and adapted it to my current environment. However when trying to load the webpage I see this error: Uncaught SyntaxError: Cannot use 'import.meta' outside a module (1st picture)
This is a separate github repo to showcase the error (https://github.com/Gui153/UploadthingServerside).
From researching it online, it looks like the script is expecting a vite env variable, but in my case I want to use process.env instead.
stack: Bun, ElysiaJS, React, and TS.
This is a separate github repo to showcase the error (https://github.com/Gui153/UploadthingServerside).
From researching it online, it looks like the script is expecting a vite env variable, but in my case I want to use process.env instead.
stack: Bun, ElysiaJS, React, and TS.

Solution
After all the help that I got from everyone, I found the UTApi (server SDK). Which was perfect for my situation. It does require a little bit of work and reading, but it works perfectly for my situation