2 months ago
Hi, I was using NIXPACK until today that I wanted to migrate to RAILPACK for my frontend and backend (I have a mono repo)
After migrating I created a file named packages/backend/railway.json
{
"build": {
"context": "../../",
"builder": "RAILPACK",
"buildCommand": "apt-get update && apt-get install -y imagemagick ghostscript graphicsmagick && bun install && bun run build:backend",
"watchPatterns": [
"packages/backend/**",
"packages/common/**",
"!.vscode/**"
]
},
"deploy": {
"startCommand": "cd packages/backend && bun run dev",
"healthcheckPath": "/health",
"healthcheckTimeout": 100
}
}
issue is that watch patterns are not being consider. EX: last commit I pushed only a change to packages/backend/railway.json and it deployed both backend and frontend.
Then I had a lot of TS errors that I think I shouldn't be having since I wasn't having them with NIXPACK
$ tsc src/api/custom-field/custom-field.mapper.ts(2,52): error TS2307: Cannot find module '@prisma/client' or its corresponding type declarations. src/api/receipt/receipt.controller.ts(22,29): error TS2307: Cannot find module '@prisma/client' or its corresponding type declarations. src/api/transaction-rule/transaction-rule.controller.ts(16,29): error TS2307: Cannot find module '@prisma/client' or its corresponding type declarations. src/api/transaction/transaction.controller.ts(46,43): error TS2307: Cannot find module '@prisma/client' or its corresponding type declarations.
Any ideas? mainly with the point 2. since it's the most important one.In the meantime I changed back to NIXPACK.
1 Replies
2 months ago
Hey there! We've found the following might help you get unblocked faster:
🧵 Prisma (v5.22.0) not working on deploy (on server startup)
🧵 My Node.js builds have begun erroring with Prisma ORM db connection issues
If you find the answer from one of these, please let us know by solving the thread!
2 months ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • about 2 months ago