The EdgeTimer backend reads all external configuration from environment variables loaded byDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/JulietaEM/EdgeTimer/llms.txt
Use this file to discover all available pages before exploring further.
@nestjs/config at startup. The three Supabase connection variables are required — the server throws immediately if any are absent. The storage bucket variables are optional and fall back to the default bucket names provisioned in a standard Supabase project.
Place these variables in a .env file in the backend/ directory for local development. In production, set them as environment variables on your hosting platform (for example, Heroku config vars).
Supabase connection
These three variables are required. The application throws an error at startup if any are missing.The base URL of your Supabase project, for example
https://abcdefgh.supabase.co. Found in the Supabase dashboard under Project Settings → API → Project URL.The anon (public) API key for your project. Used to create the user-scoped
supabase client that respects Row Level Security policies. Found in the Supabase dashboard under Project Settings → API → Project API keys → anon public.The service role secret key. Used to create the
supabaseAdmin client that bypasses RLS for privileged server-side queries and storage operations. Found in the Supabase dashboard under Project Settings → API → Project API keys → service_role.Supabase Storage buckets
These variables configure which Supabase Storage buckets are used when uploading and resolving barber and client profile photos. All are optional; if omitted the defaults shown below are used. The service tries each bucket in order and falls back to the next if the bucket is not found, which makes it straightforward to migrate bucket names without a code change.Primary bucket for barber profile photo uploads.
Fallback bucket for barber profile photos, tried if
SUPABASE_STORAGE_BUCKET_BARBEROS is not found.Primary bucket for client profile photo uploads.
Fallback bucket for client profile photos, tried if
SUPABASE_STORAGE_BUCKET_CLIENTES is not found.Final fallback bucket used for both barber and client photo uploads when the primary and secondary buckets are not found.
Example .env
.env