Skip to content

Commit

Permalink
feat: CoCreate-sitemap to dynamically genereate sitemaps and enttries
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Aug 24, 2024
1 parent 591d42e commit ad45238
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CoCreate.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ module.exports = {
'path': '../CoCreate-components/CoCreate-render',
'repo': 'github.com/CoCreate-app/CoCreate-render.git'
},
{
'path': '../CoCreate-components/CoCreate-sitemap',
'repo': 'github.com/CoCreate-app/CoCreate-sitemap.git'
},
{
'path': '../CoCreate-components/CoCreate-socket-client',
'repo': 'github.com/CoCreate-app/CoCreate-socket-client.git'
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
"@cocreate/organizations": "^1.27.4",
"@cocreate/server": "^1.1.6",
"@cocreate/server-side-render": "^1.10.3",
"@cocreate/sitemap": "^1.0.0",
"@cocreate/socket-server": "^1.29.3",
"@cocreate/unique": "^1.19.6",
"@cocreate/url-uploader": "^1.0.0",
Expand Down
3 changes: 2 additions & 1 deletion src/modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const metrics = require('@cocreate/metrics')
const usage = require('@cocreate/usage')
const organizations = require('@cocreate/organizations');
const serverSideRender = require('@cocreate/server-side-render');
const sitemap = require('@cocreate/sitemap');
const unique = require('@cocreate/unique');
const users = require('@cocreate/users');
const authenticate = require('@cocreate/authenticate')
Expand Down Expand Up @@ -50,7 +51,7 @@ module.exports.init = async function (cluster, server) {
wsManager.authenticate = new authenticate(crud)
wsManager.authorize = new authorize(crud)

new lazyLoader(server, crud, new fileServer(new serverSideRender(crud)));
new lazyLoader(server, crud, new fileServer(new serverSideRender(crud), new sitemap(crud)));

new metrics(crud);
new notification(crud);
Expand Down

0 comments on commit ad45238

Please sign in to comment.