Adds a reusable FieldMappingEditor component to the integration detail page that works across all providers (Monday.com, Google Sheets, Airtable, Planning Center). Users can visually map card fields (core + dynamic FormTemplate fields) to external columns. - New GET /api/integrations/source-fields returns curated core card fields plus the org's default FormTemplate dynamic fields (prefixed with fieldData.) - flattenCardFieldData helper hoists fieldData entries to top- level keys before pushCard so dynamic fields are mappable - Monday provider now upserts: re-syncing a card updates the existing item instead of creating duplicates, and the mondayItemId is persisted back to the ResponseCard Made-with: Cursor
54 lines
2.5 KiB
Text
54 lines
2.5 KiB
Text
# ─── Database (Supabase pooled connection) ────────────────────
|
|
DATABASE_URL="postgresql://postgres.<ref>:<password>@aws-0-us-east-1.pooler.supabase.com:6543/postgres"
|
|
|
|
# ─── Object Storage (Supabase Storage, S3-compatible) ─────────
|
|
STORAGE_ENDPOINT="https://<ref>.supabase.co/storage/v1/s3"
|
|
STORAGE_REGION="us-east-1"
|
|
STORAGE_ACCESS_KEY=""
|
|
STORAGE_SECRET_KEY=""
|
|
STORAGE_BUCKET="echos-ocr"
|
|
|
|
# ─── Upstash QStash (job queue) ───────────────────────────────
|
|
QSTASH_TOKEN=""
|
|
QSTASH_CURRENT_SIGNING_KEY=""
|
|
QSTASH_NEXT_SIGNING_KEY=""
|
|
|
|
# ─── Vercel AI Gateway ────────────────────────────────────────
|
|
AI_GATEWAY_API_KEY=""
|
|
|
|
# ─── Auth.js (required — generate with: npx auth secret) ─────
|
|
AUTH_SECRET=""
|
|
AUTH_URL="https://echoocr.yourdomain.com"
|
|
|
|
# ─── OIDC SSO (optional) ──────────────────────────────────────
|
|
AUTHENTIK_ISSUER=""
|
|
AUTHENTIK_CLIENT_ID=""
|
|
AUTHENTIK_CLIENT_SECRET=""
|
|
|
|
# ─── Brevo transactional email ────────────────────────────────
|
|
BREVO_API_KEY=""
|
|
EMAIL_FROM_NAME="Echo OCR"
|
|
EMAIL_FROM_ADDRESS="mars@noreply.stillwell.cloud"
|
|
|
|
# ─── Vercel Cron Secret ────────────────────────────────────────
|
|
# Vercel auto-sets this on Pro. Used to authenticate cron job requests.
|
|
CRON_SECRET=""
|
|
|
|
# ─── Public site URL (used for OG metadata, canonical links) ─
|
|
NEXT_PUBLIC_SITE_URL="https://echoocr.com"
|
|
|
|
# ─── Environment indicator ────────────────────────────────────
|
|
NEXT_PUBLIC_ENV=""
|
|
|
|
# ─── Integration OAuth credentials ────────────────────────────
|
|
# Planning Center Online — create an OAuth app at
|
|
# https://api.planningcenteronline.com/oauth/applications
|
|
# Redirect URI: {AUTH_URL}/api/integrations/oauth/planning_center/callback
|
|
PCO_CLIENT_ID=""
|
|
PCO_CLIENT_SECRET=""
|
|
|
|
# Google Sheets — create OAuth credentials in Google Cloud Console,
|
|
# enable the "Google Sheets API", and add the redirect URI:
|
|
# {AUTH_URL}/api/integrations/oauth/google_sheets/callback
|
|
GOOGLE_CLIENT_ID=""
|
|
GOOGLE_CLIENT_SECRET=""
|