If the public api call is something containing "localhost," it's better to use "0.0.0.0" instead.
NEXT_PUBLIC_API_URL = 'http://localhost:8080'
If it's like this and doesn't work, try:
NEXT_PUBLIC_API_URL = 'http://0.0.0.0:8080'
'React > Next.js' 카테고리의 다른 글
How to put images on top of box using TailwindCSS and Reat? (0) | 2023.06.18 |
---|---|
NextJS Navbar with TailwindCSS (0) | 2023.01.27 |