Skip to content

Commit

Permalink
fix: add property to include specific urls in the site config
Browse files Browse the repository at this point in the history
  • Loading branch information
dzehnder committed Aug 22, 2024
1 parent fa788eb commit 19a7b48
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const configSchema = Joi.object({
brokenTargetURL: Joi.string().optional(),
targetURL: Joi.string().optional(),
})).optional(),
productDetailPages: Joi.array().items(Joi.string()),
includedURLs: Joi.array().items(Joi.string()),
}).unknown(true)).unknown(true),
}).unknown(true);

Expand Down Expand Up @@ -64,7 +64,7 @@ export const Config = (data = {}) => {
self.getExcludedURLs = (type) => state?.handlers[type]?.excludedURLs;
self.getManualOverwrites = (type) => state?.handlers[type]?.manualOverwrites;
self.getFixedURLs = (type) => state?.handlers[type]?.fixedURLs;
self.getProductDetailPages = (type) => state?.handlers[type]?.productDetailPages;
self.getIncludedURLs = (type) => state?.handlers[type]?.includedURLs;

self.updateSlackConfig = (channel, workspace, invitedUserCount) => {
state.slack = {
Expand Down

0 comments on commit 19a7b48

Please sign in to comment.