legends810 commited on
Commit
a38a959
·
verified ·
1 Parent(s): efe1b37

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. functions/[[path]].ts +9 -0
functions/[[path]].ts ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import type { ServerBuild } from '@remix-run/cloudflare';
2
+ import { createPagesFunctionHandler } from '@remix-run/cloudflare-pages';
3
+
4
+ // @ts-ignore because the server build file is generated by `remix vite:build`
5
+ import * as serverBuild from '../build/server';
6
+
7
+ export const onRequest = createPagesFunctionHandler({
8
+ build: serverBuild as unknown as ServerBuild,
9
+ });