2024-07-04 21:20:29 +00:00
|
|
|
module.exports = () => ({
|
|
|
|
'fuzzy-search': {
|
|
|
|
enabled: true,
|
|
|
|
config: {
|
|
|
|
contentTypes: [{
|
|
|
|
uid: 'api::tag.tag',
|
|
|
|
modelName: 'tag',
|
|
|
|
transliterate: false,
|
|
|
|
queryConstraints: {
|
|
|
|
where: {
|
|
|
|
'$and': [
|
|
|
|
{
|
|
|
|
publishedAt: {
|
|
|
|
'$notNull': true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
fuzzysortOptions: {
|
|
|
|
characterLimit: 32,
|
|
|
|
threshold: -600,
|
|
|
|
limit: 10,
|
|
|
|
keys: [{
|
|
|
|
name: 'name',
|
|
|
|
weight: 100
|
|
|
|
}]
|
2024-01-20 16:16:14 +00:00
|
|
|
}
|
2024-07-04 21:20:29 +00:00
|
|
|
}]
|
2024-01-20 16:16:14 +00:00
|
|
|
}
|
|
|
|
},
|
2024-07-04 21:20:29 +00:00
|
|
|
"users-permissions": {
|
|
|
|
config: {
|
|
|
|
register: {
|
|
|
|
allowedFields: [
|
|
|
|
"isNamePublic",
|
|
|
|
"isLinkPublic",
|
|
|
|
"avatar",
|
|
|
|
"vanityLink",
|
|
|
|
"patreonBenefits"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2024-01-20 16:16:14 +00:00
|
|
|
}
|
2024-07-04 21:20:29 +00:00
|
|
|
});
|