Replies: 2 comments 4 replies
-
Is there a known route path prefix or something for that controller?
You can just configure preload like this:
config.flipper.preload = -> (request) {
!request.path.start_with?('/assets')
}
|
Beta Was this translation helpful? Give feedback.
1 reply
-
What does your route look like? Maybe I can backtrack something from that
…On Tue, Sep 23, 2025 at 4:19 PM Jeff Baxendale ***@***.***> wrote:
No, there is not a reliable path or subdomain that I can use to target the
path alone, thus my conundrum trying to find an alternative 🥲
—
Reply to this email directly, view it on GitHub
<#941 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAB23HJSVISP76YTTOOIL3UGTL7AVCNFSM6AAAAACHJOPVQGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTINBZGA2TINY>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I came across this previous issue trying to find a solution where I could avoid Flipper preloading on certain controllers entirely… alas I couldn't seem to find a middleware to insert before/after that would have
request.env['action_dispatch.request.path_parameters'][:controller]
populated for inspection within the preload proc.Basically the use case is that about 50% of our traffic hits the Rails app but is proxying Webflow pages, where there is no flipper usage at all, but there is unfortunately not a reliable path or subdomain that is used only for our actual application that I could easily target like the examples.
All of the proxying goes through the same controller, so ideally I could just disable preload in that context, but I've not been able to find that solution yet (and mucking around too much with the middleware has me concerned with long term brittleness).
Has anyone had to do something similar, or know of something I'm missing?
Beta Was this translation helpful? Give feedback.
All reactions