Skip to content
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

Fixed data issue #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

kazewaze
Copy link

@kazewaze kazewaze commented Dec 5, 2022

This fixes an issue where the data resulted in being read as a 'string' instead of an 'object'.

This fixes an issue where the data resulted in being read as a 'string' instead of an 'object'.
@vercel
Copy link

vercel bot commented Dec 5, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
read-files-api-route ✅ Ready (Inspect) Visit Preview Dec 5, 2022 at 8:02PM (UTC)

@the-simian
Copy link

This works in less steps:
res.status(200).send(fileContents);

@jasonm
Copy link

jasonm commented Apr 11, 2023

I'm not sure why the original code worked as-is on the preview deploy linked in the vercel bot comment above but I agree with the PR author and commenters - this change is necessary for the sample application to run as intended for me. Using Node v18.15.0 and a fresh create-next-app with next 13.3.0. cc @swarnava in case you're able to review and potentially update. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants