-
Notifications
You must be signed in to change notification settings - Fork 15
feat: add secure local development detection for flow compilation #473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 11-30-use_supabase_service_role_key_for_controlplane_auth_zero-config_
Are you sure you want to change the base?
Conversation
|
|
View your CI Pipeline Execution ↗ for commit 170589a
☁️ Nx Cloud last updated this comment at |
🔍 Preview Deployment: Website✅ Deployment successful! 🔗 Preview URL: https://pr-473.pgflow.pages.dev 📝 Details:
_Last updated: _ |

Added Local Development Detection for Flow Compilation
This PR adds a robust mechanism for detecting local development environments to ensure safe flow compilation behavior. Key changes:
localDetection.tsmodule with constants for known local Supabase keys/ensure-compiledendpoint to automatically detect environment and set compilation modeThe detection is cryptographically safe - production Supabase instances cannot accidentally match the known local keys. This approach follows a "default-to-production" safety model where any environment not positively identified as local will be treated as production.