Files
probably-rendering-one-more…/src/pages/index.tsx
T
codex-bot 8b650fdf78
PROMPT CI and deployment / verify-and-deploy (push) Successful in 8m18s
Build PROMPT media library with masonry UI and persistent PostgreSQL S3 storage
2026-10-22 22:18:11 +08:00

9 lines
405 B
TypeScript

import type { GetServerSideProps } from "next";
import { Feed } from "@/components/Feed";
import { feed } from "@/lib/library";
export default Feed;
export const getServerSideProps:GetServerSideProps=async({query})=>{
try{return {props:{initial:await feed({q:String(query.q||'').slice(0,200)})}};}
catch{return {props:{initial:{posts:[],tags:[],contributions:[],nextCursor:null,unavailable:true}}};}
};