Skip to content

Commit

Permalink
Update content/docs/reference/self-hosted/database-adapter/mongodb.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jamespohalloran authored Aug 22, 2023
1 parent 8d69b9d commit 141fea2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export default isLocal
: createDatabase({
// ...
databaseAdapter: new MongodbLevel<string, Record<string, any>>({
// Create a new collection for each branch (if you are using branches). If you are not using branches you can pass a static collection name. ie: "tinacms"
collectionName: branchName,
// If you are not using branches you could pass a static collection name. ie: "tinacms"
collectionName: `tinacms-${branchName}`,
dbName: 'tinacms',
mongoUri: process.env.MONGODB_URI as string,
}),
Expand Down

0 comments on commit 141fea2

Please sign in to comment.