Kenny
Kenny
Explore posts from servers
RRailway
Created by Kenny on 9/24/2023 in #✋|help
Unable to load env from service variables
https://github.com/nytrek/bostadsval-backend I have created a minimal repo that I have used to try and deploy to nestjs however the env does not appear to load in correctly. I'm using nestjs together with mongoose. When I wrap the env variable in strings I get the following error - MongoParseError: Invalid scheme, expected connection string to start with "mongodb://" or "mongodb+srv://" and without strings - MongoAPIError: URI cannot contain options with no value which indicates to me that the service variable is loaded but not correctly. The minimal repo works 100% locally. Please let me know if railway does not support this type of projects being deployed so that I can start looking for alternatives. Thanks
56 replies