📎Setting Up Environment Variables
Last updated
Last updated
Prepare Your Development Environment :
Environment Variables:
To ensure seamless integration with necessary services, you'll need to configure environment variables in your project. Begin by creating a .env
file in the root directory and populate it with the required keys and URLs.
Creating the .env
File:
Create a .env
file in the root of your project directory.
Populating the .env
File:
Site URL: Set the local or production site URL.
Supabase URL: Add the URL of your Supabase project.
Supabase Anon Key: Include the anonymous key for interacting with the Supabase API.
Supabase Database URL: Provide the database connection string for connecting to your PostgreSQL database hosted on Supabase.
Supabase Service Role Key: This key allows server-side interactions with your database, bypassing Row Level Security. It should never be exposed in client-side code.
RESEND_API_KEY: This key allows you to send newsletter emails to your users.
Ensure that each key and URL is correctly entered to facilitate proper connection and authentication to your Supabase services. This setup will enable your application to securely access and manage data as needed.