From bb0280583e34b3d326c733737fd2bdea21d408d6 Mon Sep 17 00:00:00 2001 From: Xin Feng <126309503+danielxfeng@users.noreply.github.com> Date: Sun, 11 Jan 2026 14:04:39 +0200 Subject: [PATCH] fix/frontend: env --- README.md | 5 +++++ frontend/src/lib/config/config.ts | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1332c50..444dcda 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,11 @@ I also implemented a minimal **frontend prototype** using **Svelte** for learnin --- +## Demo + +- Frontend: [https://auth-demo-sage.vercel.app/](https://auth-demo-sage.vercel.app/) +- Backend Swagger: [https://auth-demo-x0sd.onrender.com/api/docs/index.html](https://auth-demo-x0sd.onrender.com/api/docs/index.html) + ## Features Currently supported features include: diff --git a/frontend/src/lib/config/config.ts b/frontend/src/lib/config/config.ts index b0e1788..05ebbb6 100644 --- a/frontend/src/lib/config/config.ts +++ b/frontend/src/lib/config/config.ts @@ -1,4 +1,6 @@ +import { PUBLIC_API_BASE_URL, PUBLIC_API_HEALTH_CHECK_URL } from '$env/static/public'; + export const cfg = { - apiBaseUrl: import.meta.env.VITE_API_BASE_URL || 'http://localhost:3003/api/users', - apiHealthCheckUrl: import.meta.env.VITE_API_HEALTH_CHECK_URL || 'http://localhost:3003/api/ping' + apiBaseUrl: PUBLIC_API_BASE_URL || 'http://localhost:3003/api/users', + apiHealthCheckUrl: PUBLIC_API_HEALTH_CHECK_URL || 'http://localhost:3003/api/ping' };