Skip to content

Commit 84beca6

Browse files
committed
fix: removed hardcoded url link, added variables in .env.example
Signed-off-by: Kannav02 <[email protected]>
1 parent fb35712 commit 84beca6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
BACKEND_ENDPOINT=
2-
NEXT_PUBLIC_PROXY_ENDPOINT=
2+
NEXT_PUBLIC_PROXY_ENDPOINT=
3+
GEMINI_API_KEY=
4+
BACKEND_ENDPOINT_HELPERS=
5+
NEXT_PUBLIC_LLM_API_ENDPOINT=

frontend/nextjs-frontend/app/api/chat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default async function handler(
77
if (req.method === 'POST') {
88
try {
99
const response = await fetch(
10-
'https://select-griffon-suddenly.ngrok-free.app/api/chat',
10+
process.env.NEXT_PUBLIC_LLM_API_ENDPOINT as string,
1111
{
1212
method: 'POST',
1313
headers: {

0 commit comments

Comments
 (0)