From ceb65421eb6eb6e7ee129a6b54553ea6ab3fee31 Mon Sep 17 00:00:00 2001 From: Patrick Alvin Alcala Date: Wed, 24 Sep 2025 17:17:34 +0800 Subject: [PATCH] Corrected use of .env --- .env | 2 +- src/pages/IndexPage/Index.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env b/.env index fed0f93..4801c14 100644 --- a/.env +++ b/.env @@ -1 +1 @@ -BACKEND=http://localhost:4320/api/ \ No newline at end of file +VITE_BACKEND=http://localhost:4320/api/ \ No newline at end of file diff --git a/src/pages/IndexPage/Index.tsx b/src/pages/IndexPage/Index.tsx index 961f300..c5bceec 100644 --- a/src/pages/IndexPage/Index.tsx +++ b/src/pages/IndexPage/Index.tsx @@ -3,7 +3,7 @@ import { Button, Page, Padding, Display, Row, Logo, Column, Box } from '../../co import { onMount } from 'solid-js' import { ofetch } from 'ofetch' -const API = 'http://localhost:4320/api/' +const API = import.meta.env.VITE_BACKEND let assessorsNameList: string[] export default () => { @@ -33,7 +33,7 @@ export default () => { -