Skip to content

Commit

Permalink
Add gatsby-source-mongodb plugin for the new "reports" collection in …
Browse files Browse the repository at this point in the history
…translations database
  • Loading branch information
pdcp1 committed Dec 19, 2024
1 parent ecac92e commit 53ce0e2
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions site/gatsby-site/gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ const plugins = [
},
},
},
// TODO: Remove the following source once all reports are migrated to the new schema
{
resolve: 'gatsby-source-mongodb',
options: {
Expand All @@ -111,6 +112,17 @@ const plugins = [
},
},
},
{
resolve: 'gatsby-source-mongodb',
options: {
dbName: 'translations',
collection: ['reports'],
connectionString: config.mongodb.connectionString,
extraParams: {
replicaSet: config.mongodb.replicaSet,
},
},
},
{
resolve: 'gatsby-source-mongodb',
options: {
Expand Down

0 comments on commit 53ce0e2

Please sign in to comment.