its says you not subcribe to the api but i subcribe it
export const exerciseOption = {
method: 'GET',
params: {limit: '10'},
headers: {
'X-RapidAPI-Key': process.env.REACT_APP_RAPID_API_KEY,
'X-RapidAPI-Host': 'exercisedb.p.rapidapi.com'
}
}
export const FetchData=async (url , options)=>{
const response = await fetch(url , options);
const data = await response.json();
return data;
}
ディスカッションに参加しましょう-以下にコメントを追加してください:
log that environment variable to verify it’s correctly configured