Skip to content

Commit dddd560

Browse files
committed
Add dotenv
1 parent 176937e commit dddd560

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

frontend/package-lock.json

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"class-variance-authority": "^0.7.0",
2626
"clsx": "^2.1.1",
2727
"cmdk": "^1.0.0",
28+
"dotenv": "^16.4.5",
2829
"framer-motion": "^11.9.0",
2930
"js-cookie": "^3.0.5",
3031
"lucide-react": "^0.445.0",

frontend/src/api/leetcode-dashboard.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@ import {
33
QuestionFull,
44
NewQuestionData,
55
} from "@/types/find-match";
6+
import * as dotenv from "dotenv";
7+
8+
dotenv.config();
9+
10+
const QUESTION_SERVICE = process.env.NEXT_PUBLIC_QUESTION_SERVICE;
611

7-
const QUESTION_SERVICE =
8-
"https://question-service-598285527681.us-central1.run.app/api";
912
console.log(QUESTION_SERVICE);
1013

1114
export const createSingleLeetcodeQuestion = async (

0 commit comments

Comments
 (0)