Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ OAUTH_REDIRECT_BASE_URL=http://localhost:3000
# when the frontend is on a different host (e.g. Vercel) than the API.
OAUTH_FRONTEND_URL=

OAUTH_GOOGLE_CLIENT_ID=
OAUTH_GOOGLE_CLIENT_SECRET=
OAUTH_GITHUB_CLIENT_ID=
OAUTH_GITHUB_CLIENT_SECRET=
OAUTH_GOOGLE_CLIENT_ID=1234
OAUTH_GOOGLE_CLIENT_SECRET=1234
OAUTH_GITHUB_CLIENT_ID=1234
OAUTH_GITHUB_CLIENT_SECRET=1234

# AI settings — set FEATURE_AI=true to enable
# AI_PROVIDER=claude # claude | gemini | openai | azure | ollama
Expand Down
5 changes: 5 additions & 0 deletions server/src/db/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ await db.run(`
VALUES ('auth_github', 1,1, datetime('now'))
`)

await db.run(`
INSERT OR IGNORE INTO feature_overrides (flag, enabled, updated_by, updated_at)
VALUES ('auth_sso', 1,1, datetime('now'))
`)

// Seed only when the database is empty (excluding the Default Project)
const projectCountRow = await db.get<{ n: number }>('SELECT COUNT(*) as n FROM projects WHERE is_default = 0')
if ((projectCountRow?.n ?? 0) === 0) {
Expand Down
Loading