File tree Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Expand file tree Collapse file tree 3 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 7
7
import FooterSection from ' $components/molecules/FooterSection.svelte' ;
8
8
import Button from ' $components/atoms/Button.svelte' ;
9
9
10
- type Props = { about? : BackendAbout ; websiteUrl? : string | null };
10
+ type Props = { about? : BackendAbout | null ; websiteUrl? : string | null };
11
11
let { about, websiteUrl }: Props = $props ();
12
12
</script >
13
13
Original file line number Diff line number Diff line change 10
10
11
11
const { data : about } = useSWR <BackendAbout >(` ${RV_API_URL }/v4/about ` );
12
12
let referrer: string | null = $state (null );
13
- let websiteUrl: string | null = $state (null );
13
+ let websiteUrl: string = $state (' https://revanced.app ' );
14
14
15
15
$effect (() => {
16
16
if ($about ) websiteUrl = $about .socials [0 ].url ;
Original file line number Diff line number Diff line change @@ -12,18 +12,18 @@ const config = {
12
12
} ,
13
13
env : {
14
14
publicPrefix : 'RV'
15
- } ,
16
- prerender : {
17
- // in src/routes/+page.svelte and src/lib/components/organisms/Footer.svelte
18
- // websiteUrl is dynamically fetched from the API
19
- // when the site is built with adapter-static, the crawler tries to access
20
- // null/patches, null/download, etc... and so it'll fail
21
- // since it's not able to fetch external data
22
- handleHttpError : ( { status, message } ) => {
23
- if ( status === 404 ) return ;
24
- throw new Error ( message ) ;
25
- }
26
15
}
16
+ // prerender: {
17
+ // // in src/routes/+page.svelte and src/lib/components/organisms/Footer.svelte
18
+ // // websiteUrl is dynamically fetched from the API
19
+ // // when the site is built with adapter-static, the crawler tries to access
20
+ // // null/patches, null/download, etc... and so it'll fail
21
+ // // since it's not able to fetch external data
22
+ // handleHttpError: ({ status, message }) => {
23
+ // if (status === 404) return;
24
+ // throw new Error(message);
25
+ // }
26
+ // }
27
27
}
28
28
} ;
29
29
You can’t perform that action at this time.
0 commit comments