CheckoutSummary.getInitialProps = async function({ctx: {axios}}){ const {data: order} = await axios.get(`/api/orders/current`) return {order} } export default function CheckoutSummary({order}){ return ( <>

Checkout

        {JSON.stringify(order, null, 2)}
      
) }