I have a TurboRepo with NextJs web app using MongoDb for database and hosted on Vercel. After deploying the NextJs web app, new collections were generated with weird naming, e.g. “accounts” got named “ys”, “stations got named “ds”.
Even though the local build and the deployed one are using the same database, it creates a new collection with a single letter naming (plus s, defaulted by MongoDb). screen shot of the collections
I have tried using a different MongDb database connection, different user role, and different database name. I have also tried setting “swcMinify” to false in Next config. As well as running it in both Prod and Review environment.
I am suspecting Vercel is the cause of this, but cannot find a solution.
Has anyone encountered this before or have any idea the cause? Thank you!
felix ngo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.