-
-
Notifications
You must be signed in to change notification settings - Fork 774
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
feat: Redis made optional #333
Conversation
@YoussefLaunchUp is attempting to deploy a commit to the Noodle Team on Vercel. A member of the Team first needs to authorize it. |
@ixahmedxi removed the newer commites |
@@ -185,6 +185,7 @@ And now you got Auth! | |||
6. In the "Connect to your database" section, select "@upstash/redis" | |||
7. Copy the url into your `.env` file as `REDIS_URL` key | |||
8. Copy the token into your `.env` file as `REDIS_TOKEN` key | |||
9. Upstash is only used for ratelimiting, if left empty then ratelimiting will be disabled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel this looks like a step of setting up upstash, since it is in the ordered list. I would probably place it above the ordered list so that people read it before setting up upstash.
@@ -185,6 +185,7 @@ And now you got Auth! | |||
6. In the "Connect to your database" section, select "@upstash/redis" | |||
7. Copy the url into your `.env` file as `REDIS_URL` key | |||
8. Copy the token into your `.env` file as `REDIS_TOKEN` key | |||
9. Upstash is only used for ratelimiting, if left empty then ratelimiting will be disabled |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replace this line with the current content and place it on top of the bullet list, as a note when the user firstly starts reading this section:
> **Note** Upstash is used to provide rate-limiting capabilities to Noodle, which is optional when self hosting as that it's really only needed in the production version.
Co-authored-by: Ahmed Elsakaan <[email protected]>
I made a small change to make Redis (and rate limiting) optional, this is to make local development easier. I updated the contributing doc to reflect this as well. Just leaving the UPSTASH_REDIS_REST_URL empty will lead to skipping rate limiting.