mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +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. |
||
|---|---|---|
| .. | ||
| backend | ||
| general | ||
| helpers | ||
| js | ||
| global-setup.ts | ||
| globals.d.ts | ||
| helpers.ts | ||
| setup.ts | ||
| snapshot-serializer.ts | ||