Environment variables
Supaplate uses environment variables to configure the application.
You can find them in the .env
file.
There you will find two kinds of environment variables, the ones that start with the word VITE_
and the ones that don't.
The ones that start with VITE_
are environment variables that should and will be available in the browser.
The ones that don't start with VITE_
are environment variables that should and will be available only in the server.
Environment variables in the browser
The environment variables that start with VITE_
are available in the browser.
This means that you should not put any secrets in them, such as API keys or database passwords.
Variables like the Supabase URL or the Supabase Anon Key can be put in VITE_
environment variables if you need to access them in the browser, it isn't a security problem as long as you protect your tables with Row Level Security (RLS).