Skip to content

Commit 2b3af11

Browse files
fix(server): import from nitropack/runtime
1 parent a27e4ad commit 2b3af11

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/runtime/server/handler.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ import { createError, defineEventHandler, getRouterParam, readBody, send, setRes
33
import { base64ToUint8Array, uint8ArrayToBase64, uint8ArrayToString } from 'uint8array-extras'
44
import { destr } from 'destr'
55
import type { H3Event } from 'h3'
6+
import { defineCachedFunction } from 'nitropack/runtime'
67
import type { ModuleOptions } from '../../module'
78
import { createAuthHeader } from '../utils'
89
import type { ServerFetchOptions } from '../types'
9-
10-
// @ts-expect-error: Will be resolved by Nitro
11-
import { defineCachedFunction, useRuntimeConfig } from '#internal/nitro'
10+
import { useRuntimeConfig } from '#imports'
1211

1312
const ignoredResponseHeaders = new Set([
1413
// https://github.com/unjs/h3/blob/fe9800bbbe9bda2972cc5d11db7353f4ab70f0ba/src/utils/proxy.ts#L97

0 commit comments

Comments
 (0)