unkey
unkey copied to clipboard
Fix local command for dashboard
Currently our pnpm local command for the dashboard is broken, as it's setting the environment variable AUTH_PROVIDER=local which is not yet implemented
full output below
◆ @unkey/error built successfully.
│
◆ Build checks complete.
┌ Setting up Unkey locally...
│
◇ What would you like to develop?
│ Dashboard
│
◇ services ready
│
◇ connected to database
│
◇ table migration complete
│
◇ seed done
│
◇ .env already exists, do you want to override it?
│ No(Add the variables manually)
│
◇ /Users/andreasthomas/github/unkeyed/unkey/apps/dashboard/.env ─╮
│ │
│ # Database │
│ DATABASE_HOST="localhost:3900" │
│ DATABASE_USERNAME="unkey" │
│ DATABASE_PASSWORD="password" │
│ │
│ # Bootstrap │
│ UNKEY_WORKSPACE_ID="ws_local_root" │
│ UNKEY_API_ID="api_local_root_keys" │
│ UNKEY_WEBHOOK_KEYS_API_ID="api_local_webhook_keys" │
│ │
│ # Auth │
│ AUTH_PROVIDER="local" │
│ │
│ # Agent │
│ AGENT_URL="http://localhost:8080" │
│ AGENT_TOKEN="agent-auth-secret" │
│ │
│ # Clickhouse │
│ CLICKHOUSE_URL="http://default:password@localhost:8123" │
│ │
├─────────────────────────────────────────────────────────────────╯
│
◇
ELIFECYCLE Command failed with exit code 1.
ELIFECYCLE Command failed with exit code 1.
When I run the build command manually, it shows that auth is the issue
$ pnpm --dir=apps/dashboard build
...
Collecting page data ..Error: Unsupported AUTH_PROVIDER: local
...
Don't we just need to update it so that it sets the example variables to workOS ? https://engineering.unkey.com/contributing/workos
AUTH_PROVIDER=local this implemented, so I'm closing the issue.