Skip to content

Commit 3406956

Browse files
authored
fix(server): app aliases are not allowed in server runtime (#453)
* fix(server): nuxt handler should import `setResponseStatus` from `h3` * chore(server): import H3Event as a type
1 parent c009246 commit 3406956

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

packages/server/src/adapter/nuxt/handler.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
import type { ClientContract } from '@zenstackhq/orm';
22
import type { SchemaDef } from '@zenstackhq/orm/schema';
3-
import { H3Event, defineEventHandler, getQuery, getRouterParams, readBody, type EventHandlerRequest } from 'h3';
4-
import { setResponseStatus } from 'nuxt/app';
3+
import {
4+
defineEventHandler,
5+
getQuery,
6+
getRouterParams,
7+
readBody,
8+
setResponseStatus,
9+
type H3Event,
10+
type EventHandlerRequest,
11+
} from 'h3';
512
import { logInternalError, type CommonAdapterOptions } from '../common';
613

714
/**

0 commit comments

Comments
 (0)