I cannot use internal path to fetch my internal api data The error said
TypeError: Failed to parse URL from /api/hello**
------------
export async function getStaticProps() {
const data = await fetch("/api/hello"
...
------------
But it works, if I use full url (hard code) like this
export async function getStaticProps() {
const data = await fetch("http://localhost:3000/api/hello"
...
Anyone know how to use internal path instead of full url?