Skip to content
Permalink
8654fa9676
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
13 lines (11 sloc) 372 Bytes
import { createPagesFunctionHandler } from "@remix-run/cloudflare-pages";
// @ts-expect-error
import * as build from "@remix-run/dev/server-build";
const handleRequest = createPagesFunctionHandler({
build,
mode: process.env.NODE_ENV,
getLoadContext: (context) => context,
});
export function onRequest(context: RequestContext) {
return handleRequest(context);
}