Repository navigation
Removed isProduction & isDevelopment - #649
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. ✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Fermionic-Lyu
left a comment
There was a problem hiding this comment.
Self hosted project will have https protocol as well, only local development use http
|
wait wtf this is comment by codex 🤔 |
Yes, I can set cookie depends on that. |
Fermionic-Lyu
left a comment
There was a problem hiding this comment.
I think we have trust proxy = 1 so even if our openresty has TLS, backend should still see a https protocol in request.
Using isCloudEnvironment in backend is very sketchy. We only use it for some cloud-specific config/customization, and we should not do it in any of the basic infra. This will bring down the whole point of opensource
Summary
Removed isProduction and isDevelopment helper function. We only use the isCloud helper to distinguish whether is self-hosted or in cloud.
How did you test this change?
Now backend is returning me cookies with Secure=true.