-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path.env.example
More file actions
38 lines (32 loc) · 1.85 KB
/
Copy path.env.example
File metadata and controls
38 lines (32 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Environment Variables for webapp-template monorepo
#
# This file is automatically copied to .env when you run `bun install`
# Fill in the required values below
# DO NOT commit the .env file to version control
# =============================================================================
# SvelteKit Web App (`apps/web`)
# =============================================================================
# Supabase Configuration
# For local development:
# - PUBLIC_SUPABASE_URL: http://127.0.0.1:54321
# - PUBLIC_SUPABASE_ANON_KEY: Copy the anon key displayed when running `bun --filter api start`
# For production:
# - PUBLIC_SUPABASE_URL: https://[project-id].supabase.co
# - PUBLIC_SUPABASE_ANON_KEY: Get from Supabase Dashboard > Project Settings > API Keys
PUBLIC_SUPABASE_URL=http://127.0.0.1:54321
PUBLIC_SUPABASE_ANON_KEY=
# =============================================================================
# API/Supabase (`apps/api`)
# =============================================================================
# Optional: Only needed for production deployment or advanced server-side operations
# These are automatically set when running Supabase locally
# Database URL - Enables migration commands to target production database
# Required for: `bun --filter api push` (apply migrations to production)
# `bun --filter api pull` (pull schema changes from production)
# For production: postgresql://postgres:[password]@db.[project-ref].supabase.co:5432/postgres
# DATABASE_URL=postgresql://postgres:postgres@127.0.0.1:54322/postgres
# Service Role Key - Full admin access bypassing RLS policies (server-side only)
# Required for: Edge Functions, Webhooks, admin operations, batch processing
# WARNING: Never use in browser code - server-side only!
# Get from: Supabase Dashboard > Project Settings > API Keys > service_role (secret)
# SUPABASE_SERVICE_ROLE_KEY=