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 () => { -