Rate limit with custom database (Drizzle ORM & PostgreSQL)
When i do this setup of ratelimit storage «database» and Connect it to table «ratelimit» it does not work. Even if the app works locally it is because there is no IP. But once the app goes to production it does not work? I just receive 500 error on action.
If i enable this under auth.ts:
rateLimit: {
storage: "database",
modelName: "ratelimit",
},
No login / oauth actions will work in production (returns 500 error), but everything works fine locally (guessing ratelimit only works in production).
I do also have a ratelimit table in my database which i have migrated.


0 Replies