Skip to content

Commit c4bfe81

Browse files
devakoneclaude
andcommitted
chore: add environment configuration
- Configure Supabase ports to avoid conflicts (544xx range) - Enable GitHub OAuth provider in Supabase config - Add .env.example files for web and worker apps - Fix .gitignore to track .env.example files Local Supabase URLs: - API: http://127.0.0.1:54421 - Studio: http://127.0.0.1:54423 - DB: postgresql://postgres:postgres@127.0.0.1:54422/postgres Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 12662f7 commit c4bfe81

4 files changed

Lines changed: 33 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ dist/
2222
.env.test.local
2323
.env.production.local
2424
.env*
25+
!.env.example
2526

2627
# Supabase
2728
supabase/.branches/

apps/web/.env.example

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Supabase
2+
NEXT_PUBLIC_SUPABASE_URL=http://127.0.0.1:54421
3+
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key
4+
SUPABASE_SERVICE_ROLE_KEY=your-service-role-key
5+
6+
# GitHub OAuth (create at https://github.com/settings/developers)
7+
# Callback URL: http://localhost:3000/auth/callback
8+
GITHUB_CLIENT_ID=your-github-client-id
9+
GITHUB_CLIENT_SECRET=your-github-client-secret
10+
11+
# Claude API (for narrative generation)
12+
ANTHROPIC_API_KEY=your-anthropic-api-key
13+
14+
# App
15+
NEXT_PUBLIC_APP_URL=http://localhost:3000

apps/worker/.env.example

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Supabase
2+
SUPABASE_URL=http://127.0.0.1:54421
3+
SUPABASE_SERVICE_ROLE_KEY=your-service-role-key
4+
5+
# GitHub (for fetching commits)
6+
GITHUB_TOKEN=your-github-personal-access-token
7+
8+
# Claude API (for narrative generation)
9+
ANTHROPIC_API_KEY=your-anthropic-api-key

supabase/config.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,13 @@ max_frequency = "5s"
298298
# Use an external OAuth provider. The full list of providers are: `apple`, `azure`, `bitbucket`,
299299
# `discord`, `facebook`, `github`, `gitlab`, `google`, `keycloak`, `linkedin_oidc`, `notion`, `twitch`,
300300
# `twitter`, `x`, `slack`, `spotify`, `workos`, `zoom`.
301+
302+
[auth.external.github]
303+
enabled = true
304+
client_id = "env(GITHUB_CLIENT_ID)"
305+
secret = "env(GITHUB_CLIENT_SECRET)"
306+
redirect_uri = ""
307+
301308
[auth.external.apple]
302309
enabled = false
303310
client_id = ""
@@ -366,7 +373,7 @@ deno_version = 2
366373

367374
[analytics]
368375
enabled = true
369-
port = 54327
376+
port = 54427
370377
# Configure one of the supported backends: `postgres`, `bigquery`.
371378
backend = "postgres"
372379

0 commit comments

Comments
 (0)