Following the Fullstack Auth with Next JS and D1 tutorial but having issues on step 4
▲ ERROR:
getCloudflareContext
has been called in sync mode in either a static route or at the top level of a non-static one, both cases are not allowed but can be solved by either:
▲ - make sure that the call is not at the top level and that the route is not static
▲ - call getCloudflareContext({async: true})
to use the async
mode
▲ - avoid calling getCloudflareContext
in the route
0 Replies