fix: do not use path mapping for worker function

This commit is contained in:
Dominic Elm 2024-07-25 18:04:36 +02:00
parent 2cb3f09947
commit 8613e390cc
2 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ export default [
},
{
files: [...tsFileExtensions, ...jsFileExtensions, '**/*.tsx'],
ignores: ['packages/bolt/functions/*'],
rules: {
'no-restricted-imports': [
'error',

View File

@ -2,7 +2,7 @@ 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';
import * as serverBuild from '../build/server';
export const onRequest = createPagesFunctionHandler({
build: serverBuild as unknown as ServerBuild,