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
{{ message }}
Repository navigation
Workflow does not work well/properly when using basePath on Nextjs app #1864
(AI) If anyone still hits Cannot find module './.next/server/pages/<basePath>/.well-known/workflow/v1/flow.js' with a Next.js basePath on Vercel: #2732 fixed the SDK side, but the same error still happens when Vercel builds the app with the Next.js build adapter. Details and root cause are in #4971.
Workaround: set the project environment variable NEXT_ENABLE_ADAPTER=0 and redeploy without the build cache. In my reproduction, runs complete afterwards with basePath still set. It's not a documented setting, so treat it as temporary until the adapter fix ships.
Activity
VaguelySerious commentedon Nov 2, 2026
(AI) If anyone still hits
Cannot find module './.next/server/pages/<basePath>/.well-known/workflow/v1/flow.js'with a Next.jsbasePathon Vercel: #2732 fixed the SDK side, but the same error still happens when Vercel builds the app with the Next.js build adapter. Details and root cause are in #4971.Workaround: set the project environment variable
NEXT_ENABLE_ADAPTER=0and redeploy without the build cache. In my reproduction, runs complete afterwards withbasePathstill set. It's not a documented setting, so treat it as temporary until the adapter fix ships.