0
// get data from server using getstatic props
export async function getStaticProps() {

    const res = await axios.get("https://pharmaadmin.touchmediaads.com/api/dossier-formats")
    console.log(res)
    const data = res.data
    console.log(data)
    return {
        props: {
            data
        },
    }
}

What's the problem here??

burnsi
  • 6,194
  • 13
  • 17
  • 27

0 Answers0