46 lines
1.2 KiB
JavaScript
46 lines
1.2 KiB
JavaScript
|
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
|
||
|
}]
|
||
|
}
|
||
|
}]
|
||
|
}
|
||
|
},
|
||
|
"users-permissions": {
|
||
|
config: {
|
||
|
register: {
|
||
|
allowedFields: [
|
||
|
"isNamePublic",
|
||
|
"isLinkPublic",
|
||
|
"avatar",
|
||
|
"vanityLink",
|
||
|
"patreonBenefits"
|
||
|
]
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
});
|