Skip to content

Environment Variables

Environment variables

All environment variables and their descriptions:

  • NEXT_PUBLIC_SITE_URL - your website url. For example, https://yourwebsite.com without trailing slash. Used for sitemap.ts , robots.ts , and for client.ts
  • NEXT_PUBLIC_SITE_ENV - specifies the environment type (development/production) and affects metadata configuration. Setting this to “development” prevents search engine indexing, which is useful for staging environments (e.g., staging.yourwebsite.com).
  • NEXT_PUBLIC_SANITY_API_VERSION - your Sanity API version. You don’t have to use specific dates, any past or present date is valid, and today’s date will always give you the latest version - no need to check release history. For example: YYYY-MM-DD.
  • NEXT_PUBLIC_SANITY_PROJECT_ID - your Sanity project ID. For example, abc12345.
  • NEXT_PUBLIC_SANITY_DATASET - your Sanity dataset name. For example, production.
  • SANITY_API_READ_TOKEN - your Sanity read token for Next.js to fetch data.
  • RESEND_API_KEY - your RESEND api key for the contact form.
  • RESEND_TO_EMAIL - your email address to receive contact form submissions.
  • RESEND_FROM_EMAIL - your email address to send contact form submissions from.