Enable RLS on rate limits table

This commit is contained in:
gpt-engineer-app[bot]
2025-10-14 19:24:54 +00:00
parent fd17234b67
commit 0a325d7c37
11 changed files with 821 additions and 252 deletions

View File

@@ -7,14 +7,24 @@
const isDev = import.meta.env.DEV;
type LogContext = {
[key: string]: any;
};
export const logger = {
log: (...args: any[]) => {
if (isDev) console.log(...args);
},
error: (...args: any[]) => {
console.error(...args); // Always log errors
error: (message: string, context?: LogContext) => {
console.error(message, context); // Always log errors
},
warn: (...args: any[]) => {
if (isDev) console.warn(...args);
},
info: (...args: any[]) => {
if (isDev) console.info(...args);
},
debug: (...args: any[]) => {
if (isDev) console.debug(...args);
}
};