George Oastler
George Oastler
I wasted half a day trying to overcome this issue. Issue is present in `v20.1.1` but not in `v20.1.0` `npm i -g [email protected]` solves the issue
```bash NETLIFY_AUTH_TOKEN= npx netlify deploy --site 2da... --dir ./dist --message "local deploy from g-lt1" ``` If I run this using v20.1.1, I get "Multiple possible build commands found". v20.1.0 on...
@copilot set mongoose socketTimeoutMS to 30s
@copilot set mongoose heartbeatFrequencyMS to 10s
@copilot make sure the mongoose connection waits for "connected" event before resolving the promise
@copilot allow multiple connection instances to exist, don't limit to singleton. Ensure only schemas are exported / imported, not models directly, as these are connection oriented, so be careful.
@copilot add middleware that ensures validation is called on update(), updateMany(), findOneAndUpdate()
@copilot make the middlewares a plugin for mongoose and apply the middleware via the plugin rather than wrapping a schema
@copilot make sure all schemas that are given to the helper have their `timestamps` field set to true