Skip to content

Commit

Permalink
feat: added depends + ip logging
Browse files Browse the repository at this point in the history
  • Loading branch information
BRAVO68WEB committed Jan 19, 2024
1 parent d0ebf2b commit 0ec5c0e
Show file tree
Hide file tree
Showing 12 changed files with 1,124 additions and 2,409 deletions.
1 change: 0 additions & 1 deletion apps/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"version": "0.1.0",
"type": "module",
"scripts": {
"dev": "tauri dev",
"tauri": "tauri"
},
"devDependencies": {
Expand Down
2 changes: 2 additions & 0 deletions packages/api/config/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ const ZodEnvironmentVariables = z.object({
MAIL_LOGGER: z.string(),
MAIL_FROM_EMAIL: z.string(),
MAIL_FROM_NAME: z.string(),
UPSTASH_REDIS_REST_URL: z.string(),
UPSTASH_REDIS_REST_TOKEN: z.string(),
});

ZodEnvironmentVariables.parse(process.env);
Expand Down
6 changes: 6 additions & 0 deletions packages/api/extras/cache.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { Redis } from "@upstash/redis"

export const cache_client = new Redis({
url: process.env.UPSTASH_REDIS_REST_URL,
token: process.env.UPSTASH_REDIS_REST_TOKEN,
})
Loading

0 comments on commit 0ec5c0e

Please sign in to comment.