-
In dev everything works. Once deployed, everything work...ish.
Any one knows where this 404 comes from ? This method is just a healthcheck. Here is the code:
Since I get the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ok, here was the issue. I had a Conclusion : don't have a |
Beta Was this translation helpful? Give feedback.
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.