Relative Content

Tag Archive for next.jsstrapi

How can I ensure my UUID is saved to the DB after a new user registers with Strapi Auth?

I am facing an issue with my Strapi backend. When a new user registers using my Strapi auth system, I want to auto-generate a UUID using the strapi-advanced-uuid plugin to provide each user with a randomized unique identifier upon registration. However, this UUID isn’t being saved to the database along with the rest of the new user’s registration details.

Why does console log undefined when fetching data from Strapi API in Next.js?

I’m trying to fetch posts from my Strapi backend in a Next.js application. My Strapi server is running on localhost:1337. Here is my component code:
When I try to fetch data, posts is logged as undefined
I have confirmed that NEXT_PUBLIC_API_URL is correctly set to http://localhost:1337 in my .env file.