Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions prisma.deploy.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// Minimal Prisma config for `prisma migrate deploy` on the EC2 instance.
// Uses CommonJS (no imports) to avoid loading @prisma/config and its
// transitive `effect` dependency, which is not bundled in the artifact.
module.exports = {
datasource: {
url: process.env.DATABASE_URL,
},
};
7 changes: 7 additions & 0 deletions prisma.deploy.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
// Minimal Prisma config for `prisma migrate deploy` on the EC2 instance.
// No imports — avoids loading @prisma/config and its transitive dependencies.
export default {
datasource: {
url: process.env.DATABASE_URL,
},
};
3 changes: 2 additions & 1 deletion prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// learn more about it in the docs: https://pris.ly/d/prisma-schema

generator client {
provider = "prisma-client-js"
provider = "prisma-client-js"
binaryTargets = ["native", "linux-arm64-openssl-3.0.x"]
}

datasource db {
Expand Down
Loading