Build PROMPT media library with masonry UI and persistent PostgreSQL S3 storage
PROMPT CI and deployment / verify-and-deploy (push) Successful in 8m18s
PROMPT CI and deployment / verify-and-deploy (push) Successful in 8m18s
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
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}}};}
|
||||
};
|
||||
Reference in New Issue
Block a user