stack/examples/demo
Mantra d22593d535
private files n sm build shit (#1276)
- Introduced a fallback mechanism for the private sign-up risk engine,
allowing for zero-score assessments when the primary engine is
unavailable.
- Updated Next.js configuration to support dynamic resolution of the
private risk engine, including aliasing for both Turbopack and Webpack.
- Added a new fallback implementation in
`private-sign-up-risk-engine-fallback.ts` to ensure consistent behavior
during builds.
- Adjusted `risk-scores.tsx` to utilize the new compiled engine,
improving error handling and logging for risk assessment failures.

This update improves the robustness of the sign-up risk scoring system
and enhances the development experience by streamlining engine
resolution.

<!--

Make sure you've read the CONTRIBUTING.md guidelines:
https://github.com/stack-auth/stack-auth/blob/dev/CONTRIBUTING.md

-->


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Improvements**
* Sign-up risk engine is initialized and validated at startup for more
predictable performance.
* If the risk engine is unavailable or invalid, the system immediately
returns safe zero-risk scores to avoid runtime failures.
* **Tests**
* End-to-end tests updated to match the new engine initialization and
detection behavior.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Konstantin Wohlwend <n2d4xc@gmail.com>
2026-03-23 12:31:36 -07:00
..
public Reworked Stack Auth demo (#624) 2025-04-15 02:03:07 +00:00
src private files n sm build shit (#1276) 2026-03-23 12:31:36 -07:00
.env updated self host vars, reduced the number of required env vars 2024-12-08 16:29:08 -08:00
.env.development Turnstile integration for fraud protection (#1239) 2026-03-20 21:26:45 +00:00
.eslintrc.js tsup for stack-shared (#647) 2025-04-28 21:26:52 -07:00
.gitignore Move examples to their own folder (#77) 2024-06-16 14:58:10 +02:00
LICENSE Move examples to their own folder (#77) 2024-06-16 14:58:10 +02:00
next.config.js Upgrade Prisma to v7 (#1064) 2025-12-26 08:13:34 -08:00
package.json chore: update package versions 2026-03-13 13:53:08 -07:00
postcss.config.js Move examples to their own folder (#77) 2024-06-16 14:58:10 +02:00
tailwind.config.js Support create-next-app@15 with the setup wizard (#340) 2024-11-13 13:58:42 +01:00
tsconfig.json New client (#135) 2024-07-19 22:07:44 -07:00