How to Create a Preview Button in Strapi v3 for Next.js

Nice article and perfect timing for me personally.

Can I ask how you are loading the environment variables in /ExternalLink.js?

When I use process.env.CLIENT_PREVIEW_SECRET and process.env.CLIENT_URL both of them return undefined.

I checked your github source of the FoodAdvisor app and you are not loading the env variables on the index.js file anywhere.