Hello @Luiz,
When using the builder SDK, your code would look like the below
useEffect(() => {
builder
.get("page-article", {
limit: 100,
query: {
'data': {
"$or": [
{
"title": { "$eq": "Qwik Blog" }
},
{
"title": { "$eq": "Partytown blog" }
}
]
}
}
})
.toPromise()
.then((announcementBar) => setAnnouncement(announcementBar));
}, []);
You should not be using the endpoint like the following https://cdn.builder.io/api/v3/content/pible-page-article?apiKey=${process.env.NEXT_PUBLIC_BUILDER_API_KEY}&query.data.title.$options=i&&query.data.title.$regex=.*${searchTerm}.*&limit=20&omit=data.blocks)