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

API route works locally but not in production #8383

Closed
jeremytenjo opened this issue Aug 15, 2019 · 4 comments
Closed

API route works locally but not in production #8383

jeremytenjo opened this issue Aug 15, 2019 · 4 comments

Comments

@jeremytenjo
Copy link

jeremytenjo commented Aug 15, 2019

Bug report

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Clone https://github.com/tenjojeremy/test-nextjs-simple.git

  2. run yarn

  3. run yarn start

  4. open localhost

  5. you should see 3 posters
    posters

  6. run now

  7. open production site

  8. you will see a 500 error
    500

  9. open runtime logs in your dashboard

  10. see
    error

Expected behavior

Should display 3 movie posters in production not a 500 error

@jeremytenjo jeremytenjo changed the title API route works locally but now in production API route works locally but not in production Aug 15, 2019
@huv1k
Copy link
Contributor

huv1k commented Aug 16, 2019

Hey @tenjojeremy, thanks for reporting this. This should be fixed with this PR #8334

@jeremytenjo
Copy link
Author

@huv1k Great, thank you.

@timneutkens
Copy link
Member

Closing this as duplicate of #8251

@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants