Dominic Elm
commited on
Commit
·
8613e39
1
Parent(s):
2cb3f09
fix: do not use path mapping for worker function
Browse files- eslint.config.mjs +1 -0
- packages/bolt/functions/[[path]].ts +1 -1
eslint.config.mjs
CHANGED
|
@@ -28,6 +28,7 @@ export default [
|
|
| 28 |
},
|
| 29 |
{
|
| 30 |
files: [...tsFileExtensions, ...jsFileExtensions, '**/*.tsx'],
|
|
|
|
| 31 |
rules: {
|
| 32 |
'no-restricted-imports': [
|
| 33 |
'error',
|
|
|
|
| 28 |
},
|
| 29 |
{
|
| 30 |
files: [...tsFileExtensions, ...jsFileExtensions, '**/*.tsx'],
|
| 31 |
+
ignores: ['packages/bolt/functions/*'],
|
| 32 |
rules: {
|
| 33 |
'no-restricted-imports': [
|
| 34 |
'error',
|
packages/bolt/functions/[[path]].ts
CHANGED
|
@@ -2,7 +2,7 @@ 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 '
|
| 6 |
|
| 7 |
export const onRequest = createPagesFunctionHandler({
|
| 8 |
build: serverBuild as unknown as ServerBuild,
|
|
|
|
| 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,
|