First, run the development server:
npm run dev
Create a .env.local file in the root of the project and add the following variables:
NEXT_PUBLIC_XATA_API_KEY=YOUR_XATA_API_KEY
NEXT_PUBLIC_XATA_PROJECT_ID=YOUR_XATA_PROJECT_ID
Create a xata account, login and start creating your own xata. You will get this database wizard to create your own database.
After the hit next click, next page will show all different credentials to connect to your database.
Note: Do not try to connect to the database using the credentials shown in the image above. It is just for demonstration purposes.
Go to resend dashboard then login and create a api key, then add the api key to the .env.local file.