Sometimes I want to hide url link while using GET or POST method. Whenever I used react app I would hide the url using REACT_APP_. My question is, if I am using a Next.js APP, could I use NEXT_PUBLIC_URL instead? Does both of these variable work similarly? How are they different?
React APP
axios.get(process.env.REACT_APP_URL)
Next APP
axios.get(process.env.NEXT_PUBLIC_URL)