• Returns

    number

    serverSide blog count function

    normal fetch calls to the sites own server failed on build this is inline with what nextjs has stated in docs

    getServerside -> is essentially runs on server only -> directly execute the server code

    next -> use context prop in getserversideprops and context.query.id to the params

    id if=> [id] .. and so on

    Parameters

    • context: any

    Returns Promise<any>