-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
fix: generic env handling #5810
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
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThe changes refactor the plugin architecture to support per-environment compilation instead of a single global plugin model. Server function transformation is now configured per environment (client/server), with support for a custom provider environment and configurable runtime directives. Core plugin wiring has been updated to propagate environment metadata throughout the compilation pipeline. Changes
Sequence DiagramsequenceDiagram
autonumber
actor User
participant Core as Core Plugin
participant Compiler as Compiler Plugin
participant ServerFn as ServerFn Plugin
User->>Core: Create with environments
activate Core
Note over Core: Prepare environments list<br/>(client, server, optional providerEnv)
Core->>Compiler: createPlugin({ framework, environments })
activate Compiler
Compiler->>Compiler: perEnvCompilerPlugin() per environment
Note over Compiler: Create env-specific<br/>transform + lifecycle
Compiler-->>Core: PluginOption[] for each env
deactivate Compiler
Core->>ServerFn: createPlugin({ framework, directive, environments })
activate ServerFn
ServerFn->>ServerFn: perEnvServerFnPlugin() per environment
Note over ServerFn: Filter by environment.type<br/>Apply directive dynamically
ServerFn-->>Core: PluginOption[] for each env
deactivate ServerFn
Core-->>User: All plugins registered
deactivate Core
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes
Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
Comment |
391f018 to
1fcdd98
Compare
|
View your CI Pipeline Execution ↗ for commit 1fcdd98
☁️ Nx Cloud last updated this comment at |
Summary by CodeRabbit
providerEnvsetting to customize which environment provides server functionality