diff --git a/eslint.config.mjs b/eslint.config.mjs index 31649e8..8f51a0e 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -28,6 +28,7 @@ export default [ }, { files: [...tsFileExtensions, ...jsFileExtensions, '**/*.tsx'], + ignores: ['packages/bolt/functions/*'], rules: { 'no-restricted-imports': [ 'error', diff --git a/packages/bolt/functions/[[path]].ts b/packages/bolt/functions/[[path]].ts index 27bb892..4f19660 100644 --- a/packages/bolt/functions/[[path]].ts +++ b/packages/bolt/functions/[[path]].ts @@ -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,