From e8a827f0dac9aa71aecff6e7e63cb17da8132db5 Mon Sep 17 00:00:00 2001 From: Weei Han Date: Thu, 30 Jul 2026 20:43:15 +0800 Subject: [PATCH] M0: add .env.local.example Exempts .env*.example from the .env* gitignore rule so the template is trackable while real .env.local stays ignored. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01FcktbLXSSXzx23GCue813e --- .env.local.example | 14 ++++++++++++++ .gitignore | 1 + 2 files changed, 15 insertions(+) create mode 100644 .env.local.example diff --git a/.env.local.example b/.env.local.example new file mode 100644 index 0000000..85fac19 --- /dev/null +++ b/.env.local.example @@ -0,0 +1,14 @@ +# Copy this file to .env.local and fill in real values. +# .env.local is gitignored — never commit real keys. + +# Project Settings -> API -> Project URL +NEXT_PUBLIC_SUPABASE_URL= + +# Project Settings -> API -> anon public key. Safe to expose to the +# browser: every query it makes is filtered by RLS. +NEXT_PUBLIC_SUPABASE_ANON_KEY= + +# Project Settings -> API -> service_role key. NEVER exposed to the +# browser. Only imported in server-only files (src/lib/supabase/service.ts), +# used only inside /app/api/* route handlers. Bypasses RLS entirely. +SUPABASE_SERVICE_ROLE_KEY= diff --git a/.gitignore b/.gitignore index 5ef6a52..3639bc5 100644 --- a/.gitignore +++ b/.gitignore @@ -32,6 +32,7 @@ yarn-error.log* # env files (can opt-in for committing if needed) .env* +!.env*.example # vercel .vercel