Skip to content

Commit 622e133

Browse files
committed
fix: Add default websiteUrl through .env
1 parent b2ab8b7 commit 622e133

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
RV_API_URL=
2+
RV_WEBSITE_URL=
23
RV_DMCA_GUID=
34
RV_GOOGLE_TAG_MANAGER_ID=

src/routes/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
import { onMount } from 'svelte';
33
44
import type { BackendAbout } from '$types';
5-
import { RV_API_URL } from '$env/static/public';
5+
import { RV_API_URL, RV_WEBSITE_URL } from '$env/static/public';
66
77
import Footer from '$components/organisms/Footer.svelte';
88
import Embed from '$components/molecules/Embed.svelte';
99
1010
let about = $state<BackendAbout | null>(null);
11-
let websiteUrl = $state<string | undefined>(undefined);
11+
let websiteUrl = $state<string | undefined>(RV_WEBSITE_URL);
1212
let referrer = $state<string | null>(null);
1313
1414
async function fetchAbout() {

0 commit comments

Comments
 (0)