Using a CMS
Getting the API
Now, let's get the GraphCMS API to fetch data from our Next.js app. For that, you need to visit the setting page.
Here's how to do that:
Then create or open the .env.local file add the following variable:
Now restart your app so that we can access the above variable with process.env.GRAPHCMS_API_URL.