tony
tony
CDCloudflare Developers
Created by tony on 3/9/2024 in #pages-help
Cannot deploy on pages after installing remix-pwa
Yes, it works on local - pnpm run build - pnpm run preview I am asking here because it is inside /function/[[path]].ts
import { createPagesFunctionHandler } from '@remix-run/cloudflare-pages';

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore - the server build file is generated by `remix vite:build`
// eslint-disable-next-line import/no-unresolved
import * as build from '../build/server';

export const onRequest = createPagesFunctionHandler({ build });
import { createPagesFunctionHandler } from '@remix-run/cloudflare-pages';

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore - the server build file is generated by `remix vite:build`
// eslint-disable-next-line import/no-unresolved
import * as build from '../build/server';

export const onRequest = createPagesFunctionHandler({ build });
Is it possible that the /build/server was not build or served on Cloudflare Pages?
3 replies