You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Astro guide for Strapi is outdated regarding the data format returned by the Strapi API. Since Strapi v5, the response no longer includes the attributes field. Instead, it now uses a documentId field.
👉 See the breaking change documentation for more details.
Additionally, Strapi now provides an official client library that simplifies API calls and should be preferred over writing custom fetch logic.
📚 Official client documentation: Strapi Client
It would be better for the guide to be updated to reflect these changes and leverage the official client.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
The Astro guide for Strapi is outdated regarding the data format returned by the Strapi API. Since Strapi v5, the response no longer includes the attributes field. Instead, it now uses a documentId field.
👉 See the breaking change documentation for more details.
Additionally, Strapi now provides an official client library that simplifies API calls and should be preferred over writing custom fetch logic.
📚 Official client documentation: Strapi Client
It would be better for the guide to be updated to reflect these changes and leverage the official client.
Beta Was this translation helpful? Give feedback.
All reactions