feat: add screenshot storage migration + web URL config

Supabase migration 004 creates:
- pr-screenshots storage bucket (private, service_role read)
- screenshots table with RLS (auth insert, public read metadata)
- device_codes table for RFC 8628 auth flow (service_role only)
- pg_cron cleanup for expired codes and orphan screenshots

Also adds GSTACK_WEB_URL to config.sh for gstack.gg integration.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Garry Tan
2026-03-24 20:05:12 -07:00
parent 9ffb608613
commit 43708fd088
2 changed files with 99 additions and 0 deletions

View File

@@ -8,3 +8,6 @@ GSTACK_SUPABASE_ANON_KEY="sb_publishable_tR4i6cyMIrYTE3s6OyHGHw_ppx2p6WK"
# Telemetry ingest endpoint (Data API)
GSTACK_TELEMETRY_ENDPOINT="${GSTACK_SUPABASE_URL}/rest/v1"
# gstack.gg web app (auth + screenshot upload)
GSTACK_WEB_URL="https://gstack.gg"