Skip to content
Permalink
71381e937b
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
1 contributor

Users who have contributed to this file

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);
}