diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 82eedf3f..15a72118 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -79,6 +79,7 @@ jobs: npm exec -- supabase functions deploy system-check --project-ref ${{ env.SUPABASE_PROJECT_ID }} npm exec -- supabase functions deploy delete-user --project-ref ${{ env.SUPABASE_PROJECT_ID }} npm exec -- supabase functions deploy seed-database --project-ref ${{ env.SUPABASE_PROJECT_ID }} + npm exec -- supabase functions deploy process-flyer --project-ref ${{ env.SUPABASE_PROJECT_ID }} # --- Frontend Deployment --- - name: Build React Application diff --git a/README.md b/README.md index 45caa6d4..424c9424 100644 --- a/README.md +++ b/README.md @@ -429,9 +429,14 @@ By addressing these areas, we can transition Flyer Crawler from a powerful MVP i -# when updating the supabase schema: +# When updating the Supabase schema: npx supabase gen types typescript --project-id azmmnxkvjryracrnmhvj --schema public | Set-Content -Path types/supabase.ts -Encoding utf8 -and then restart the TS server +Run the following command to regenerate the TypeScript types for your database. The output is placed in the `_shared` directory so that Edge Functions can access it. +```bash +npx supabase gen types typescript --project-id azmmnxkvjryracrnmhvj --schema public > supabase/functions/_shared/supabase.ts +``` + +After running, you may need to restart your IDE's TypeScript server to pick up the changes.