I'm in the process of deploying this repository: https://github.com/DataStax-Examples/astra-tik-tok using Vercel instead of Netlify.
I've converted vanilla React to Next.js, but I'm unsure how to transition the code in the Home.js
file to work with Vercel:
//fetch all the tik-tok posts to your feed
const fetchData = async () => {
const results = await axios.get('/.netlify/functions/posts')
console.log(results.data)
setUsers(results.data)
}
Any thoughts or suggestions on how to address this?