Skip to content

Commit 414d8a1

Browse files
committed
fix: Add default websiteUrl through .env
1 parent b2ab8b7 commit 414d8a1

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-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=

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
4242
- name: Build
4343
env:
4444
RV_API_URL: ${{ vars.RV_API_URL }}
45+
RV_WEBSITE_URL: "https://revanced.app"
4546
RV_GOOGLE_TAG_MANAGER_ID: ${{ vars.RV_GOOGLE_TAG_MANAGER_ID }}
4647
RV_DMCA_GUID: ${{ vars.RV_DMCA_GUID }}
4748
run: bun run build

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)