Skip to content

Commit 84d3bfa

Browse files
author
Your Name
committed
fix(backend): resolve Docker build failures - Prisma config and Ethers imports
1 parent 0cff683 commit 84d3bfa

3 files changed

Lines changed: 9 additions & 12 deletions

File tree

backend/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"main": "index.js",
66
"scripts": {
77
"build": "prisma generate && tsc",
8-
"start": "node dist/index.js",
8+
"start": "node dist/src/index.js",
9+
"start:prod": "prisma db push && node dist/src/index.js",
910
"dev": "tsx watch src/index.ts",
1011
"test": "NODE_ENV=test jest",
1112
"test:watch": "NODE_ENV=test jest --watch",
@@ -19,24 +20,24 @@
1920
"author": "",
2021
"license": "ISC",
2122
"dependencies": {
22-
"@prisma/adapter-pg": "^6.7.0",
23-
"@prisma/client": "^6.7.0",
23+
"@prisma/adapter-pg": "^7.8.0",
24+
"@prisma/client": "^7.8.0",
2425
"@stellar/stellar-sdk": "^14.6.1",
2526
"@types/ioredis": "^4.28.10",
2627
"@types/json2csv": "^5.0.7",
2728
"bcryptjs": "^3.0.2",
2829
"bullmq": "^5.76.1",
2930
"cors": "^2.8.6",
3031
"dotenv": "^17.3.1",
31-
"ethers": "^6.16.0",
32+
"ethers": "^5.8.0",
3233
"express": "^5.2.1",
3334
"express-rate-limit": "^8.3.1",
3435
"ioredis": "^5.10.1",
3536
"json2csv": "^6.0.0-alpha.2",
3637
"jsonwebtoken": "^9.0.2",
3738
"openai": "^6.32.0",
3839
"pg": "^8.20.0",
39-
"prisma": "^6.7.0",
40+
"prisma": "^7.8.0",
4041
"qrcode": "^1.5.4",
4142
"socket.io": "^4.8.3",
4243
"winston": "^3.19.0",

backend/prisma.config.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
1-
// This file was generated by Prisma, and assumes you have installed the following:
2-
// npm install --save-dev prisma dotenv
3-
import 'dotenv/config';
1+
// This file was generated by Prisma - updated 2026-05-25
42
import { defineConfig } from '@prisma/config';
53

6-
const connectionString =
7-
process.env.DATABASE_URL ||
8-
'file:./dev.db';
4+
const connectionString = process.env.DATABASE_URL || 'file:./dev.db';
95

106
export default defineConfig({
117
schema: 'prisma/schema.prisma',

backend/src/auth/web3.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const verifySignature = async (
6060
nonce: string
6161
): Promise<{ user: any; accessToken: string; refreshToken: string }> => {
6262
// Normalize wallet address
63-
const normalizedAddress = ethers.getAddress(walletAddress);
63+
const normalizedAddress = ethers.utils.getAddress(walletAddress);
6464

6565
// Find and validate nonce
6666
const storedNonce = await prisma.authNonce.findFirst({

0 commit comments

Comments
 (0)