Skip to content

Commit ec7fffa

Browse files
committed
chore: codebase cleanup — remove dead code, fix bugs, improve docs
- Delete 5 unused Vue components (ErrorState, LandingHeader, LandingFooter, DiagnosticBadge, LiveTerminal) - Remove unused @tailwindplus/elements dependency - Remove commented-out Seline analytics token from nuxt.config - Remove commented-out code blocks in default.vue and ask.vue - Fix undefined print_error in scripts/stop.sh - Replace real-looking DB creds with placeholders in .env.example - Add missing env vars to .env.example (DATABASE_URL_MIGRATE, WEB_URL, LINK_BASE_URL, ADMIN_EMAIL) - Move recipe docs from scripts/ to docs/recipes/ - Delete duplicate Kubernetes recipe (full version already in docs/) - Update references in USE_CASES.md and exe-dev-private-access.md
1 parent 6819b03 commit ec7fffa

15 files changed

+16
-644
lines changed

USE_CASES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ connect reach k8s-api --port 6443
279279

280280
Control plane and nodes stay private; Private Connect routes traffic by name. Works with path-based multicluster API servers and distributed worker nodes.
281281

282-
See the [full virtual Kubernetes guide](docs/kubernetes-virtual-clusters-and-private-connect.md) and [recipe](scripts/kubernetes-virtual-clusters-and-private-connect.md).
282+
See the [full virtual Kubernetes guide](docs/kubernetes-virtual-clusters-and-private-connect.md).
283283

284284
---
285285

apps/api/.env.example

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Database connection (port 5433 matches docker-compose when Postgres is mapped to host 5433)
2-
DATABASE_URL="postgresql://privateconnect:privateconnect@localhost:5433/privateconnect"
2+
DATABASE_URL="postgresql://user:password@localhost:5433/privateconnect"
3+
4+
# Migration database URL (superuser, bypasses RLS - use only for migrations/db:push)
5+
DATABASE_URL_MIGRATE="postgresql://user:password@localhost:5433/privateconnect"
36

47
# API server port (optional, default: 3001)
58
PORT=3001
@@ -20,6 +23,15 @@ EMAIL_FROM="Private Connect <noreply@yourdomain.com>"
2023
# Public URL for magic links
2124
APP_URL="https://yourdomain.com"
2225

26+
# Web frontend URL (used for magic links and CORS)
27+
WEB_URL="http://localhost:3000"
28+
29+
# Base URL for public share/grant links
30+
LINK_BASE_URL="https://yourdomain.com"
31+
32+
# Admin email(s) — comma-separated for multiple admins
33+
ADMIN_EMAIL=
34+
2335
# ============================================
2436
# Field-level encryption key (required for AI API key storage)
2537
# Generate with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"

apps/web/components/DiagnosticBadge.vue

Lines changed: 0 additions & 20 deletions
This file was deleted.

apps/web/components/ErrorState.vue

Lines changed: 0 additions & 169 deletions
This file was deleted.

apps/web/components/LandingFooter.vue

Lines changed: 0 additions & 83 deletions
This file was deleted.

0 commit comments

Comments
 (0)