Frontend Environment Variables Configuration
- Add the following environment variables:
NEXTAUTH_URL="Your_site_url"
NEXTAUTH_SECRET="Your_Next-auth_Secret "
STRAPI_ENDPOINT="Your_Strapi_Endpoint"
STRAPI_AUTH_TOKEN="Your_Strapi_API_Token"
- Here
NEXTAUTH_URL
andNEXTAUTH_SECRET
are the minimum required variables keys.
ℹ️
NOTE: you can generate NEXTAUTH_SECRET key using the following command support.
openssl rand -base64 32
- And the
STRAPI_ENDPOINT
,STRAPI_AUTH_TOKEN
keys are required to Connect Strapi with Frontend.