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
I was just exploring the project and wondered it would be better fetching from a single json file and single json file and fetched data from there.
export async function getServerSideProps({ params }) { const req = await fetch(`http://localhost:3000/cars.json`); const data = await req.json(); const carData = data[params.id]; return { props: { car: carData }, }; }
Would be fun to use this. Thoughts @codediodeio ?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I was just exploring the project and wondered it would be better fetching from a single json file and single json file and fetched data from there.
Would be fun to use this.
Thoughts @codediodeio ?
The text was updated successfully, but these errors were encountered: