Bundling Prisma with my Express app

Hi everyone, I currently have a project with Typescript, ExpressJS, Prisma and want to bundle with with whatever bundling tool there is out there. Literally ANY at this point. Also, to include all the node_module dependencies so I can simply export 1 large js file with its various config files. ESBuild wants me to keep my environment variables in my OS, which I do not find practical for my basic deploy via SSH and shell script. Parcel...doesn't work at all. I understand it's mostly for libraries. Webpack seemed to nearly work, but hits the same wall as ESBuild. I have searched far and wide to get some sort of advice on how to bundle it. I am keeping in the same folder the prisma OS binary, the env file, the schema.prisma file (as per most bundling tool requirements) and still am unable to make it work. It simply doesn't want to load or process my .ENV file (starting with the DATABASE_URL value).
0 Replies
No replies yetBe the first to reply to this messageJoin