diff --git a/packages/nitro/src/targets/cli/entry.ts b/packages/nitro/src/targets/cli/entry.ts index e82677f019..ad058ad4bf 100644 --- a/packages/nitro/src/targets/cli/entry.ts +++ b/packages/nitro/src/targets/cli/entry.ts @@ -1,3 +1,4 @@ +// @ts-ignore import { render } from '~runtime/server' render(process.argv[2] || '/') diff --git a/packages/nitro/src/targets/cloudflare/entry.ts b/packages/nitro/src/targets/cloudflare/entry.ts index 0aa0b0c613..b27f83034c 100644 --- a/packages/nitro/src/targets/cloudflare/entry.ts +++ b/packages/nitro/src/targets/cloudflare/entry.ts @@ -1,3 +1,4 @@ +// @ts-ignore import { render } from '~runtime/server' addEventListener('fetch', (event) => {