This commit is contained in:
Korbs 2024-08-21 17:06:56 -04:00
parent fa352ba512
commit e2566cce31
4 changed files with 6 additions and 5 deletions

BIN
bun.lockb

Binary file not shown.

View file

@ -37,7 +37,8 @@ export default defineConfig({
// Experimental
experimental: {
directRenderScript: true,
clientPrerender: true
clientPrerender: true,
serverIslands: true
},
prefetch: {
prefetchAll: true,

View file

@ -56,7 +56,7 @@ else if (Astro.url.href.includes('?platform=twitch')) {
<div class="video-grid">
{PlatformYouTube ?
YouTubeData.map((video) =>
<Video
<Video server:defer
ID={video.videoId}
Title={video.title}
Creator={video.author}
@ -70,7 +70,7 @@ else if (Astro.url.href.includes('?platform=twitch')) {
}
{PlatformTwitch ?
TwitchData.data.streams.map((channel) =>
<Stream
<Stream server:defer
Title={channel.title}
Creator={channel.username}
Avatar={channel.streamer.pfp}