mirror of
https://github.com/stackblitz/bolt.new
synced 2024-11-27 14:32:46 +00:00
fix: do not use path mapping for worker function
This commit is contained in:
parent
2cb3f09947
commit
8613e390cc
@ -28,6 +28,7 @@ export default [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
files: [...tsFileExtensions, ...jsFileExtensions, '**/*.tsx'],
|
files: [...tsFileExtensions, ...jsFileExtensions, '**/*.tsx'],
|
||||||
|
ignores: ['packages/bolt/functions/*'],
|
||||||
rules: {
|
rules: {
|
||||||
'no-restricted-imports': [
|
'no-restricted-imports': [
|
||||||
'error',
|
'error',
|
||||||
|
@ -2,7 +2,7 @@ import type { ServerBuild } from '@remix-run/cloudflare';
|
|||||||
import { createPagesFunctionHandler } from '@remix-run/cloudflare-pages';
|
import { createPagesFunctionHandler } from '@remix-run/cloudflare-pages';
|
||||||
|
|
||||||
// @ts-ignore because the server build file is generated by `remix vite:build`
|
// @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({
|
export const onRequest = createPagesFunctionHandler({
|
||||||
build: serverBuild as unknown as ServerBuild,
|
build: serverBuild as unknown as ServerBuild,
|
||||||
|
Loading…
Reference in New Issue
Block a user