We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The blog is displaying mocked blog posts 👇
We need to implement data fetching from Dev.to and display the real blog posts from the community.
Because we need to update mocked content from the Figma/Next.js migration.
Use getStaticProps as data fetching strategy.
getStaticProps
export const getStaticProps = async () => { const res = await fetch("https://dev.to/api/articles?username=surpathhub"); const data = await res.json(); return { props: { data, }, }; };
@vinzvinci Do you already have account for SurPath Hub?
No response
The text was updated successfully, but these errors were encountered:
Yes
https://dev.to/surpathhub
Sorry, something went wrong.
Yes https://dev.to/surpathhub
Ok so it's normal that https://dev.to/api/articles?username=surpathhub is empty.
yeah let's put on-hold first xD
No branches or pull requests
Detailed description
The blog is displaying mocked blog posts 👇
We need to implement data fetching from Dev.to and display the real blog posts from the community.
Context
Because we need to update mocked content from the Figma/Next.js migration.
Possible implementation
Use
getStaticProps
as data fetching strategy.@vinzvinci Do you already have account for SurPath Hub?
Additional information
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: