Layer 2 Fix

This commit is contained in:
ayyo42069
2026-02-19 00:06:37 +01:00
parent 5ce891c6cf
commit 45add35c8a
3 changed files with 84 additions and 46 deletions
+9
View File
@@ -131,6 +131,15 @@ const patchApp = async () => {
process.exit(1)
}
// Remove @prisma/instrumentation - it has a broken nested node_modules reference
// to @opentelemetry/instrumentation that causes a crash after repacking.
// It's only telemetry and not needed for the app to function.
const prismaInstrPath = path.join(tempPath, 'node_modules', '@prisma', 'instrumentation')
if (fs.existsSync(prismaInstrPath)) {
rm(prismaInstrPath)
console.log(chalk.yellowBright`Removed broken @prisma/instrumentation package`)
}
const indexPath = path.join(tempPath, 'build', 'index.js')
if (!fs.existsSync(indexPath)) {
console.error(chalk.redBright`Couldn't find index.js file`)