getappmap / getappmap/appmap.io

Set SUPABASE_SERVICE_ROLE_KEY worker secret (paper-request form errors until then)

Open Beginner friendly
#2 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

The paper-request form on /benchmarks fails on submit because the worker secret SUPABASE_SERVICE_ROLE_KEY is not set (wrangler secret list returns []). Everything else on the site works.

The form's server function (src/lib/paper-requests.functions.ts) writes to the paper_requests table in the Supabase project ulrbnkrvxzbtqancxmtn (created by Lovable) and reads the key from process.env.

Steps

  1. Get the key: supabase.com/dashboard → project ulrbnkrvxzbtqancxmtn → Project Settings → API Keys → reveal the service_role secret (starts sb_secret_). If the project isn't listed under your account, reach it through the hello-bright project's Cloud panel in Lovable. This is NOT the sb_publishable_ key already committed in .env.
  2. npx wrangler login as kevin@app.land if needed, then:
    npx wrangler secret put SUPABASE_SERVICE_ROLE_KEY
  3. Redeploy (push any commit, or npm run build && npx wrangler deploy) — secrets take effect on the next deploy.
  4. Verify: submit the form on https://appmap.io/benchmarks and expect a success message; confirm a row lands in paper_requests.

See CUTOVER.md § Phase 0 for the full context.

🤖 Generated with Claude Code

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with src/lib/paper-requests.functions.ts and CUTOVER.md § Phase 0, then check the worker secret list and the Supabase project configuration. The work is complete when the deployed /benchmarks form submits successfully and a row appears in the paper_requests table.

Written by the indexing model from the issue text.

Assessment

Tech stack
supabase, typescript
Domain
backend, cloud, database
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
62/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.