-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.env.example
More file actions
119 lines (98 loc) · 4.86 KB
/
.env.example
File metadata and controls
119 lines (98 loc) · 4.86 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# ==============================================================================
# Sobers - Environment Configuration
# ==============================================================================
# Copy this file to .env and fill in your actual values
# NEVER commit .env to version control
# ==============================================================================
# ==============================================================================
# SUPABASE (Required)
# ==============================================================================
# Get these from: https://app.supabase.com/project/_/settings/api
# Both values are required for the app to function
EXPO_PUBLIC_SUPABASE_PUBLISHABLE_KEY=your-supabase-publishable-key-here
EXPO_PUBLIC_SUPABASE_URL=https://your-project-id.supabase.co
# ==============================================================================
# EXPO / EAS (Required for Builds)
# ==============================================================================
# Get token from: https://expo.dev/settings/access-tokens
# Required for: EAS builds, OTA updates, publishing
EXPO_TOKEN=your-expo-access-token-here
# ==============================================================================
# SENTRY (Required for Production)
# ==============================================================================
# Get from: https://sentry.io/settings/volvox/projects/sobers/keys/
# Required for: Error tracking, performance monitoring, release tracking
# --- Public Configuration ---
# DSN (Data Source Name) - safe to expose in client
EXPO_PUBLIC_SENTRY_DSN=https://your-key@your-org.ingest.sentry.io/your-project-id
# App environment tag for filtering errors in Sentry (defaults to 'production')
# Values: development | preview | production
# EXPO_PUBLIC_APP_ENV=development
# --- Build-time Configuration (CI/CD Only) ---
# Auth token from: https://sentry.io/settings/account/api/auth-tokens/
# Scopes needed: project:releases, project:write, org:read
SENTRY_AUTH_TOKEN=your-sentry-auth-token-here
# Organization slug (typically "volvox")
SENTRY_ORG=volvox
# Project slug (must match Sentry project name)
SENTRY_PROJECT=sobers
# ==============================================================================
# OAUTH PROVIDERS (Required for Social Auth)
# ==============================================================================
# --- Google OAuth (Supabase Auth) ---
# Get from: https://console.cloud.google.com/apis/credentials
# These are used by Supabase to validate Google OAuth tokens
GOOGLE_CLIENT_ID=your-google-client-id.apps.googleusercontent.com
GOOGLE_SECRET=your-google-client-secret
# --- Apple Sign In ---
# Get from: https://developer.apple.com/account/resources/identifiers/list/serviceId
# APPLE_CLIENT_ID=your-apple-service-id-here
# ==============================================================================
# AMPLITUDE ANALYTICS
# ==============================================================================
# Amplitude Dashboard: https://app.amplitude.com
# Get API key from: Settings > Projects > [Your Project] > General
EXPO_PUBLIC_AMPLITUDE_API_KEY=your-amplitude-api-key-here
# Optional: Enable debug mode for analytics (shows events in console)
EXPO_PUBLIC_ANALYTICS_DEBUG=false
# ==============================================================================
# DEVELOPMENT (Optional)
# ==============================================================================
# --- Expo Dev Client ---
# Uncomment to disable Expo telemetry
# EXPO_NO_TELEMETRY=1
# --- React Native ---
# Uncomment for verbose logging during development
# REACT_NATIVE_PACKAGER_HOSTNAME=localhost
# DEBUG=*
# --- Testing ---
# Uncomment to run tests in verbose mode
# JEST_VERBOSE=true
# --- E2E Testing (Playwright) ---
# Service role key for E2E test setup/teardown (user creation, cleanup)
# Get from: https://app.supabase.com/project/_/settings/api (service_role key)
# WARNING: This key bypasses RLS - NEVER expose in client-side code
E2E_SUPABASE_SERVICE_KEY=your-supabase-service-role-key-here
# ==============================================================================
# NOTES
# ==============================================================================
#
# Variable Naming Convention:
# - SUPABASE_* = Exposed to client via app.config.ts extra field
# - EXPO_PUBLIC_* = Exposed to client-side code (safe to use in app)
# - Other vars = Build-time only (NOT available in app code)
#
# Required vs Optional:
# - Required: SUPABASE_*, EXPO_TOKEN, SENTRY_* (for prod)
# - Required for E2E: E2E_SUPABASE_SERVICE_KEY
# - Optional: Development/debugging variables
#
# Security:
# - Never commit .env file to git (it's in .gitignore)
# - Rotate tokens/keys immediately if accidentally exposed
# - Use EAS Secrets for CI/CD: `eas secret:create --scope project`
#
# Documentation:
# - Setup guide: README.md
#
# ==============================================================================