-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shazam top tracks #79
Conversation
add images domain in next.config.js file
maybe will need to set the req in getstaticprops func idk
pages/api/top/charts.js
Outdated
url: 'https://shazam.p.rapidapi.com/charts/track', | ||
params: { pageSize: '5', startFrom: '0' }, | ||
headers: { | ||
'X-RapidAPI-Key': '0ac7392c46msha4f3dfc287416ffp189c80jsnd7cf096105d4', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hide the API key in a .env file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did
@@ -47,8 +47,8 @@ const TopCharts = ({ topCharts }) => { | |||
<Image | |||
src={chart?.images.coverart} | |||
alt={chart?.title} | |||
width={16} | |||
height={16} | |||
width='100%' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of width & height 100% we can use the layout="fill" and set the parent container "relative"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of width & height 100% we can use the layout="fill" and set the parent container "relative"
you should have changed it while merging, I'll change it in next commit
No description provided.