To get the best results from your query, you need to use modifiers. Instead of just searching the broad keyword, try these specific strings:
By adding these modifiers, you filter the "all category" result into a specific niche, saving you hours of scrolling. ssr movies tv show all category
This shows how to fetch data on the server and pass it to the component. To get the best results from your query,
// pages/index.tsx (or app/page.tsx)
import CategoryBrowser from '../components/CategoryBrowser';
import MediaService from '../services/mediaService';
export async function getServerSideProps()
// Fetch data on the server
const categories = await MediaService.getAllCategories();
const initialMedia = await MediaService.getAllMedia();
return
props:
categories,
initialMedia,
,
;
export default function Home( categories, initialMedia )
return (
<main className="bg-black min-h-screen text-white">
<CategoryBrowser
initialCategories=categories
initialMedia=initialMedia
/>
</main>
);
Based on current viewing trends, here are the top 10 titles that users typically look for within this massive library: By adding these modifiers, you filter the "all