665 viewsNext Amazona
0 Comments

Hello 2 questions, I am getting a hydration error when I use the getServerSideProps in the slug and how do I check that the database is connected. I am also going to ask on your site as well 🙂

Bassir Answered question October 13, 2022

hello there

for hydration check this:

for connection to db I have a log here:

if you have that log “db connected” in your terminal then it works:

https://github.com/basir/next-tailwind-amazona/blob/main/utils/db.js#L13

Bassir Answered question October 13, 2022