mirror of
https://github.com/stackblitz/bolt.new
synced 2024-11-27 14:32:46 +00:00
10 lines
367 B
TypeScript
10 lines
367 B
TypeScript
import type { ServerBuild } from '@remix-run/cloudflare';
|
|
import { createPagesFunctionHandler } from '@remix-run/cloudflare-pages';
|
|
|
|
// @ts-ignore because the server build file is generated by `remix vite:build`
|
|
import * as serverBuild from '../build/server';
|
|
|
|
export const onRequest = createPagesFunctionHandler({
|
|
build: serverBuild as unknown as ServerBuild,
|
|
});
|