Jump to content

Talk:Prisma: Difference between revisions

From Official NixOS Wiki
Latest comment: 30 January by Bjn in topic Necessity of env variables
Bjn (talk | contribs)
Bjn (talk | contribs)
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:


:I can't get it to work with or without. With, when doing `npm ci` it complains that the files the env vars point to don't exist. Without, when doing `npm ci` it complains that it couldn't get a checksum for the libquery engine. [[User:Bjn|Bjn]] ([[User talk:Bjn|talk]]) 20:56, 26 January 2026 (UTC)
:I can't get it to work with or without. With, when doing `npm ci` it complains that the files the env vars point to don't exist. Without, when doing `npm ci` it complains that it couldn't get a checksum for the libquery engine. [[User:Bjn|Bjn]] ([[User talk:Bjn|talk]]) 20:56, 26 January 2026 (UTC)
::I don't install it through npm, I have the `prisma` package in my nix shell and I just run it directly, that usually works. From what I can tell you're installing it through npm and then setting those env vars. Have I misunderstood? [[User:Mmkaram|mmkaram]] ([[User talk:Mmkaram|talk]]) 17:47, 28 January 2026 (UTC)
:::At this point I don't remember exactly what I was doing when I wrote my last message. I since made progress and have it running, but without prisma in npm dependencies, how do you deal with deployment? I had a "vercel-build": "prisma migrate deploy && npm run build" entry in my package.json, but surely that isn't going to work if prisma wasn't in the package.json dependencies. [[User:Bjn|Bjn]] ([[User talk:Bjn|talk]]) 02:35, 30 January 2026 (UTC)

Latest revision as of 02:35, 30 January 2026

Necessity of env variables

I just tried using Prisma without the env variables specified in the example flake and it worked fine. I originally added them because I was told it was necessary for Prisma to function, I'll keep them for now until I make sure it doesn't mess with the functionality at all. Mmkaram (talk) 21:54, 26 March 2025 (UTC)Reply

I can't get it to work with or without. With, when doing `npm ci` it complains that the files the env vars point to don't exist. Without, when doing `npm ci` it complains that it couldn't get a checksum for the libquery engine. Bjn (talk) 20:56, 26 January 2026 (UTC)Reply
I don't install it through npm, I have the `prisma` package in my nix shell and I just run it directly, that usually works. From what I can tell you're installing it through npm and then setting those env vars. Have I misunderstood? mmkaram (talk) 17:47, 28 January 2026 (UTC)Reply
At this point I don't remember exactly what I was doing when I wrote my last message. I since made progress and have it running, but without prisma in npm dependencies, how do you deal with deployment? I had a "vercel-build": "prisma migrate deploy && npm run build" entry in my package.json, but surely that isn't going to work if prisma wasn't in the package.json dependencies. Bjn (talk) 02:35, 30 January 2026 (UTC)Reply