Replies: 1 comment
|
The A reliable baseline for a pnpm Turborepo image is:
Turborepo's Docker guide explains the split Prisma also has a pnpm-workspaces guide showing a separate database package and an explicit generate step: https://docs.prisma.io/docs/guides/deployment/pnpm-workspaces For the current Prisma generator, prefer a custom output directory in Your
That will show whether the missing piece is the generated output, pnpm workspace deployment, or the platform-specific Prisma engine. |
Uh oh!
There was an error while loading. Please reload this page.
Summary
turbo repo pnpm for the mono repo and packages contains the database, auth, shared, redis this contains the shared configurations or client like in prisma on database while dockerzing i am getting indefinite number of issues
need help
how does the production wise code base to be setted up
what i am doing according to the google where i found something and then added
building using tsup with config
`
import { defineConfig } from "tsup";
export default defineConfig({
entry: ["src/server.ts"],
format: ["cjs"],
platform: "node",
bundle: true,
noExternal: [/^@repo//],
external: ["@prisma/client/runtime/client"], // Prisma has .node binary — cannot bundle
shims: true, // ← injects createRequire so CJS dynamic requires work in ESM
clean: true,
outDir: "dist",
});
souravdeepakpoddar@shree
`
so that making inline into the dist/server.js the final outcome
except the client
and now i am getting another issue client runtime not present and then build failed
so i can add ths prisma/client/runtime execution on tsup will make this work
but getting different types of issues
can anyone tell me or can share the reference of docs so that i can make this done possibly make this work
what just i want is to make run the backend on the vm for now that to be prefered for the very first time then go to the production wize
Additional information
No response
Example
No response
All reactions