@cf-wasm/og didnt work for me either on local dev I ended up using the vercel one as well.
@cf-wasm/og didnt work for me either on local dev
I ended up using the vercel one as well.
I ended up using the vercel one as well.
apps/nextjs/next-on-pages.d.ts file with --remote like you would via wrangler. It doesn't seem like getPlatformProxy accepts an option for this either?render functionwrangler pages deployment tail https://developers.cloudflare.com/pages/functions/debugging-and-logging/#view-logs-with-wrangler

signIn is a server action here

DO from a next-on-pages app (with the DO running on a second terminal - hono.dev app).env.d.tswrangler dev session and a Worker (or Next in this case) in another sessionBREAKING CHANGE: Since webpack 5 WebAssembly is not enabled by default and flagged as experimental feature.export const dynamicParams = falseapps/nextjs/next-on-pages.d.tspnpm run deployimport { clerkMiddleware, createRouteMatcher } from "@clerk/nextjs/server";
import { NextResponse } from "next/server";
const isProtectedRoute = createRouteMatcher(["/start(.*)"]);
export default clerkMiddleware(
(auth, request) => {
if (isProtectedRoute(request)) {
auth().protect();
}
return NextResponse.next();
},
{ debug: true },
);
export const config = {
matcher: ["/((?!.+\\.[\\w]+$|_next)._)", "/", "/(api|trpc)(._)"],
};const createContext = async (req: NextRequest) => {
return createTRPCContext({
headers: req.headers,
auth: getAuth(req),
});
}; "message": "Clerk: getAuth() was called but Clerk can't detect usage of clerkMiddleware() (or the deprecated authMiddleware()). Please ensure the following:\n- clerkMiddleware() (or the deprecated authMiddleware()) is used in your Next.js Middleware.\n- Your Middleware matcher is configured to match this route or page.\n- If you are using the src directory, make sure the Middleware file is inside of it.\n\nFor more details, see https://clerk.com/docs/quickstarts/nextjs\n",--remotegetPlatformProxyrenderwrangler pages deployment tailsignInexport const runtime = 'edge'pnpm i wrangler@3.53.1DOnext-on-pagesError: Cannot access `Counter#getCounterValue` as Durable Object RPC is not yet supported between multiple `wrangler dev` sessions.env.d.tsProperty 'COUNTERS' does not exist on type 'CloudflareEnv'.ts(2339)wrangler devdeclare module '@cloudflare/next-on-pages/next-dev' {
export function setupDevPlatform(): Promise<void>
}export async function GET(request: NextRequest) {
const counterId = getRequestContext().env.COUNTERS.idFromName('A');
const stub = getRequestContext().env.COUNTERS.get(counterId);
const counterValue = await stub.getCounterValue()
return new Response(counterValue)
}import { type Counter } from '@packages/counterdo';
interface CloudflareEnv {
COUNTERS: DurableObjectNamespace<Counter>
}const counterId = getRequestContext().env.COUNTERS.idFromName('A');