From 9c4d5989c56e9190f8591fd9f7e8b3d2444d6433 Mon Sep 17 00:00:00 2001 From: Myphz Date: Tue, 30 Jul 2024 10:05:04 +0200 Subject: [PATCH] chore: add .env.example, untrack .env --- .env => .env.example | 6 +++++- .gitignore | 5 +++-- src/test/utils.ts | 5 +++-- 3 files changed, 11 insertions(+), 5 deletions(-) rename .env => .env.example (53%) diff --git a/.env b/.env.example similarity index 53% rename from .env rename to .env.example index f9f9789..11058fe 100644 --- a/.env +++ b/.env.example @@ -1,2 +1,6 @@ CHAT_ID=6497143757 -PEXELS_API_KEY_DEBUG=Rb5YHj4SpV758zcCZVYiCmZ5JuctgC4ErwbChJi4EqCFKIyfBa8lbCVg \ No newline at end of file +PEXELS_API_KEY_DEBUG=Rb5YHj4SpV758zcCZVYiCmZ5JuctgC4ErwbChJi4EqCFKIyfBa8lbCVg +TRIPS_BOT_API_TOKEN= +SUPABASE_URL= +ANON_KEY= +JWT_SECRET= diff --git a/.gitignore b/.gitignore index 483885f..e5e769d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ node_modules/ dist/ -.env.test -.env.production \ No newline at end of file +\.env.test +\.env.production +\.env diff --git a/src/test/utils.ts b/src/test/utils.ts index ca2f7b7..28dd4c8 100644 --- a/src/test/utils.ts +++ b/src/test/utils.ts @@ -6,13 +6,14 @@ import dotenv from "dotenv"; import assert from "node:assert/strict"; import { after, beforeEach } from "node:test"; +dotenv.config(); dotenv.config({ path: ".env.test" }); const SUPABASE_URL = process.env.SUPABASE_URL ?? throwError("supabase url"); const ANON_KEY = process.env.ANON_KEY ?? throwError("anon key"); -export const user_id = "6b66be31-4966-4503-9dd4-67a44c1c0505"; -export const user_id2 = "807e08e3-1b6d-4cb5-b3f9-55758e68dd3c"; +export const user_id = "4d3e1bb5-492e-4fd7-8dfd-fe9f9d75de43"; +export const user_id2 = "ac791267-b0a8-4f94-ab40-0a1cd846d000"; function generateJWT(email: string, id: string) { const now = Math.floor(+new Date() / 1000) - 20;