mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-30 21:01:54 +08:00
Move Node.js-only functions (evalConfigFileContent, tryEvalConfigFileContent, detectImportPackageFromDir) to new config-eval.ts. This prevents the dashboard browser build from failing on fs/path/jiti imports. Dashboard now uses parseStaticConfigLiteral (regex+JSON.parse) instead of jiti eval for untrusted GitHub-fetched config content, avoiding RCE risk. Remove type casts in favor of isRecord type guard. Co-Authored-By: mantra <mantra@stack-auth.com> |
||
|---|---|---|
| .. | ||
| app | ||
| components | ||
| hexclave | ||
| hooks | ||
| lib | ||
| globals.d.ts | ||
| instrumentation.ts | ||
| polyfills.tsx | ||
| proxy.tsx | ||