Skip to content

Supabase edge function fixes and refactor#210

Merged
tonyxiao merged 7 commits intov2from
v2-supabase
Mar 31, 2026
Merged

Supabase edge function fixes and refactor#210
tonyxiao merged 7 commits intov2from
v2-supabase

Conversation

@Yostra
Copy link
Copy Markdown
Collaborator

@Yostra Yostra commented Mar 31, 2026

Summary

Fix Supabase-specific regressions from main: clean vault on install, use time-based limits for sync invocations, remove noisy error logs
Add supabase CLI command to apps/engine for managing Supabase deployments
Split the monolithic stripe-sync edge function into three separate functions: stripe-setup, stripe-sync, and stripe-webhook

How to test (optional)

Tested by hand by deploying to supabase

Copy link
Copy Markdown
Collaborator

@tonyxiao tonyxiao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve. The 3-way split (stripe-setup / stripe-webhook / stripe-worker) is the right move — the monolithic path router was fighting against Supabase's per-function deployment model.

A couple of small things for awareness:

  • apps/supabase/src/edge-functions/stripe-sync.ts is deployed as stripe-worker. The filename mismatch will confuse people — consider renaming the file to stripe-worker.ts in a follow-up, or adding a comment at the top.
  • const VERSION = '0.1.0' in stripe-setup.ts — is this used anywhere for schema comment tracking? If not, remove it; if yes, it needs a process to stay in sync with releases.
  • console.error removal in src-list-api.ts: 👍 those were noisy.
  • denoImportsPlugin rename + simplification in build.mjs is cleaner than before.

@tonyxiao tonyxiao merged commit 22dc58d into v2 Mar 31, 2026
6 checks passed
@tonyxiao tonyxiao deleted the v2-supabase branch March 31, 2026 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants