Hello everyone! Happy holidays!
We are near the new year, which means, its a perfect time for upstream breaking changes! Both mainline Alphine/Ubuntu have switched to OpenSSL 3, this means that your older Node projects (16 and below) might have issues. (Especially with Webpack and older versions of Prisma.) Fret not, there is a fix.
Troubleshooting
-
Enable the legacy Debian image
You can set an env var in Railway withNIXPACKS_DEBIANset to1. This will make sure that OpenSSL 1.1 will be installed. -
Enable OpenSSL 1.1 for Node. You can set this with setting an Env Var
NODE_OPTIONSto--openssl-legacy-provider
You may need to check and pin some npm packages to certain versions, but know its not just you, a lot of builds have been messed by this change in mainline linux.
Happy Hacking and we will try our best to help you through this time. 🙂