-
Hello there I try to use graphql-mesh as part of a Next.js app and deploy it to Vercel. It works fine locally, but on Vercel the following error shows in the server-log if I try to navigate to https://nfts.vercel.app/api/graphql:
I assume this is because https://github.com/schmidsi/nft-browser/blob/main/pages/api/graphql.ts |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Update: I also tried to deploy the example to Vercel. It has the same effect: https://graphql-mesh-mu.vercel.app/api/graphql Next steps would be to try to include .yaml files into the build somehow. |
Beta Was this translation helpful? Give feedback.
-
I found a solution by myself 💪 Although it is a bit hacky. The trick is: |
Beta Was this translation helpful? Give feedback.
I found a solution by myself 💪
Although it is a bit hacky. The trick is:
mesh.config.js
instead of.meshrc.yaml
to add it to the buildimportFn
toprocessConfig