stack/apps/backend/scripts
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
..
verify-data-integrity [Fix]: Investigate Memory Leak on Verify Data Integrity (#1269) 2026-03-23 08:55:10 -07:00
clickhouse-migrations.ts Analytics event tracking (#1208) 2026-02-17 18:33:01 -08:00
db-migrations.ts Queries view (#1145) 2026-02-16 11:39:21 -08:00
db-migrations.tsdown.config.ts Fix Docker build 2026-03-09 10:49:42 -07:00
generate-keys.ts Split backend and dashboard (#83) 2024-06-18 15:49:31 +02:00
generate-migration-imports.ts Auto migration (#526) 2025-07-24 02:38:37 +02:00
generate-openapi-fumadocs.ts Email outbox backend (#1030) 2025-12-12 10:26:38 -08:00
generate-private-sign-up-risk-engine.ts private files n sm build shit (#1276) 2026-03-23 12:31:36 -07:00
generate-route-info.ts fixes? 2025-12-12 17:29:57 -08:00
run-cron-jobs.ts External db sync (#1036) 2026-02-05 12:04:31 -08:00
run-email-queue.ts Speed up tests (#1063) 2025-12-28 11:25:04 -08:00