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

Next.js + Flask fails in production #831

Closed
bernatfortet opened this issue Nov 19, 2023 · 4 comments
Closed

Next.js + Flask fails in production #831

bernatfortet opened this issue Nov 19, 2023 · 4 comments

Comments

@bernatfortet
Copy link

bernatfortet commented Nov 19, 2023

I'm visiting the url: https://nextjs-flask-starter.vercel.app/ which is your official demo of this Next.js + flask example and I'm getting an error when going to https://nextjs-flask-starter.vercel.app/api

image

Additionally, would you be so kind to show an example of sub paths? e.g. /api/echo

I think @steven-tey created the example

@benfwalla
Copy link

benfwalla commented Jan 11, 2024

It appears Vercel's demo still doesnt work if you go to https://nextjs-flask-starter.vercel.app/api/python, which the code suggests is a valid API route.

I'm going to try with the FastAPI Template, as at least its demo works, so I can reverse engineer.

@chrispepper1989
Copy link

has this been resolved? the demo still doesnt work, while annoyingly it works locally

@JavaScriptJohn
Copy link

Bump

leerob pushed a commit that referenced this issue Jun 17, 2024
Updates our NextJS/Flask example to Flask 3, which also solves the issue
fixed in #926 but in a way that
gets Flask on latest.

This also incorporate the change in
#922 (Thanks @0xWerz ) and closes
#816 #831 #906 #816.

For the Flask2 specific example pins `werkzeug` to avoid transient
dependency errors where it pulls in the incompatible `werkzeug@3.x`


* Next/Flask deploy:
https://nextjs-flask-guc4p7qgk-trek-glowacki.vercel.app/
* Flask 3 deploy: https://flask3-b6hmmqcnd-trek-glowacki.vercel.app/
* Flask 2 deploy: https://flask2-97jddsq6c-trek-glowacki.vercel.app/

---------

Co-authored-by: Musa <78509039+0xWerz@users.noreply.github.com>
@trek
Copy link
Contributor

trek commented Jun 17, 2024

Resolved by #927 I believe. Please reopen and @ me if not!

@trek trek closed this as completed Jun 17, 2024
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

No branches or pull requests

5 participants