From 6f1a0e5eb23e7e4bd2d16d8b7b3f836eccfcfac8 Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Fri, 17 Nov 2023 01:24:31 +0000 Subject: [PATCH] feat: move api url to env (#23) --- .env.example | 5 ++++- .../StudentCertificate/UnlockedCertificate.svelte | 4 +++- .../components/Lesson/Materials/Video/LocalVideo.svelte | 5 +++-- src/lib/components/Course/components/Settings/index.svelte | 5 +++-- .../courses/[id]/lessons/[...lessonParams]/+page.svelte | 7 ++++--- 5 files changed, 17 insertions(+), 9 deletions(-) diff --git a/.env.example b/.env.example index 0535ad8f..1eacf78c 100644 --- a/.env.example +++ b/.env.example @@ -21,4 +21,7 @@ VITE_SENTRY_ORG_NAME=the-next-greats VITE_SENTRY_PROJECT_NAME=classroomio # OpenAI setup - Optional if you want to use OpenAI -OPENAI_API_KEY= \ No newline at end of file +OPENAI_API_KEY= + +# Sever URL - Optional if you want to use video upload and pdf downloads +PUBLIC_SERVER_URL= \ No newline at end of file diff --git a/src/lib/components/Course/components/Ceritficate/StudentCertificate/UnlockedCertificate.svelte b/src/lib/components/Course/components/Ceritficate/StudentCertificate/UnlockedCertificate.svelte index 620a5e71..8c2e8655 100644 --- a/src/lib/components/Course/components/Ceritficate/StudentCertificate/UnlockedCertificate.svelte +++ b/src/lib/components/Course/components/Ceritficate/StudentCertificate/UnlockedCertificate.svelte @@ -1,4 +1,5 @@