Why does `fetch('/api/profile')` gives "Invalid URL" when `$fetch('/api/profile')` works just fine? - Nuxt