mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-24 21:04:03 +08:00
Previously, we were using an old version of `freestyle.sh` and experienced issues with it failing. We want to update it to the latest API and also introduce a fallback that can be used when freestyle fails to improve reliability. We refactor the `freestyle.tsx` wrapper code around `freestyle` to a `js-execution-engine`, which also offers opportunities to extend the email rendering engine abstraction in the future. If `freestyle` encounters runtime errors while running the code or fails, we retry once and then default to `Vercel sandbox`. Note that we also introduce a sanity test: 5% of the time, we will run the code through both `freestyle` and the `Vercel Sandbox` and log it if the results don't match. As a chore, we also up the time limit on a `failed-email-digest.test.ts` test to make it less flakey. |
||
|---|---|---|
| .. | ||
| __snapshots__ | ||
| auth | ||
| contact-channels | ||
| emails | ||
| integrations | ||
| internal | ||
| payments | ||
| api-keys.test.ts | ||
| auth-flows.test.ts | ||
| check-feature-support.test.ts | ||
| connected-accounts.test.ts | ||
| data-vault.test.ts | ||
| email-themes.test.ts | ||
| index.test.ts | ||
| internal-metrics.test.ts | ||
| notification-preferences.test.ts | ||
| oauth-providers.test.ts | ||
| project-permission-definitions.test.ts | ||
| project-permissions.test.ts | ||
| projects.test.ts | ||
| render-email.test.ts | ||
| restricted-users.test.ts | ||
| send-email.test.ts | ||
| stripe-webhooks.test.ts | ||
| team-invitations.test.ts | ||
| team-member-profiles.test.ts | ||
| team-memberships.test.ts | ||
| team-permission-definitions.test.ts | ||
| team-permissions.test.ts | ||
| teams.test.ts | ||
| unsubscribe-link.test.ts | ||
| users-primary-email.test.ts | ||
| users.test.ts | ||