Skip to content

Commit

Permalink
chore: add .env.example, untrack .env
Browse files Browse the repository at this point in the history
  • Loading branch information
Myphz committed Jul 30, 2024
1 parent 028f780 commit 9c4d598
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
6 changes: 5 additions & 1 deletion .env → .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
CHAT_ID=6497143757
PEXELS_API_KEY_DEBUG=Rb5YHj4SpV758zcCZVYiCmZ5JuctgC4ErwbChJi4EqCFKIyfBa8lbCVg
PEXELS_API_KEY_DEBUG=Rb5YHj4SpV758zcCZVYiCmZ5JuctgC4ErwbChJi4EqCFKIyfBa8lbCVg
TRIPS_BOT_API_TOKEN=
SUPABASE_URL=
ANON_KEY=
JWT_SECRET=
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
node_modules/
dist/
.env.test
.env.production
\.env.test
\.env.production
\.env
5 changes: 3 additions & 2 deletions src/test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9c4d598

Please sign in to comment.