Skip to content
Discussion options

You must be logged in to vote

Ok, here was the issue. I had a /api folder at the root of my project. This folder was used for the imports in my /pages/api. I noticed something weird in the compiled output for my deployment. A /api folder with all the functions inside. They were callable with a curl, but returned a 502, which seemed pretty normal.

Conclusion : don't have a /api folder at the root of your project, it will mess up the deployment. Even if it works locally.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by fabien-h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant