You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am trying to adopt this example in my nextjs project and once I am adding /api to the root of project - it works,
but /pages/api stops working.
Moving all the /pages/api to /api is not an option - it doesn't work properly (nextjs api work differently then vercel api)
Should we instead move rust api to /pages/api?
Could you provide working example?
I expect this potential issues:
package.json / vercel-build may be ignored under /pages so we will need to use package.json from the root of project
wasm/.so files will not be deployed by default, this in theory is possible through nextjs config / webpack options.
The text was updated successfully, but these errors were encountered:
BTW similar issue I faced when tried to use rust runtime in NextJS app.
But that case is even worse, because vercel.json/functions/runtime config will not work under /pages/api so moving api under /pages is not an option also.
Hi, I am trying to adopt this example in my nextjs project and once I am adding /api to the root of project - it works,
but /pages/api stops working.
Moving all the /pages/api to /api is not an option - it doesn't work properly (nextjs api work differently then vercel api)
Should we instead move rust api to /pages/api?
Could you provide working example?
I expect this potential issues:
The text was updated successfully, but these errors were encountered: