-
-
Notifications
You must be signed in to change notification settings - Fork 105
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
Add readonly mode #243
Add readonly mode #243
Conversation
659216b
to
664159f
Compare
@maschwenk Could you follow the conventional commits? Thanks! |
@matteovivona Totally, was just putting this here as a placeholder as I wasn't sure if this was an idea y'all would be on board with at all |
@matteovivona would you accept this PR more or less as-is? (after adding testings and conventional commits, obviously) I opted to not mount the route at all because I want to make sure it 404s instead of 500s or 200s. I believe Turborepo will retry on 500s and 200 ACKing feels kinda wrong. Worth noting I'm also working with Turborepo to implement this at the Client level, but they have some concerns about how to make that functionality coherent with all the other flags they have |
@fox1t @matteovivona The client-side flag actually landed in So I think this may not be necessary at all to implement server side. In fact in pretty much every way, it feels like a client side implementation is better. |
OH! Awesome! We can skip to implement it here, even if I can see user cases where can be useful to have a server that can be reachable only in read mode. |
@fox1t agreed. The server-side implementation use-case seems a little more fringey. |
In this PR:
Issues reference:
Checklist:
pnpm lint
locally prior to submission?pnpm build
of your changes locally?pnpm test
of your changes locally?