有關連線mongoDB出現的錯誤
在連線的時候若是出現:
[MongooseError]: The `uri` parameter to `openUri()` must be a string, got "undefined". Make sure the first parameter to `mongoose.connect()` or `mongoose.createConnection()` is a string.
多半代表的是在關於設定dotenv的部分以及所建立的.env的檔案有關有問題
解決的方式大約有:
...
wensu.hashnode.dev1 min read