0

I have deployed a website and lets say the url is https://google.com

When im testing the javascript on localhost:3000, when I do

fetch("https://google.com/config.json")

it will fetch "localhost:3000/google.com/config.json" instead.

How do i make it so it will fetch "https://google.com/config.json" only(basically removing the localhost so i can test things work on my website without redeploying it?

TIMMY123
  • 55
  • 9

0 Answers0