Skip to content

Commit fe0cc37

Browse files
committed
hotfix Next.js server
1 parent 14d5d20 commit fe0cc37

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/server/src/next/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ function createRequest(
6363
export function NextComment(options: NextCommentOptions): NextCommentRouter {
6464
const internal = CustomComment<RequestType>(options);
6565
const router: RouteHandler = async (req, context) => {
66-
const catchAll = (await context.params).comment.join("/");
66+
const catchAll = ['comments', ...(await context.params).comment].join("/");
6767
const res = await internal.handleRequest(req.method, catchAll, (params) =>
6868
createRequest(req, params),
6969
);

packages/server/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"include": ["."],
44
"exclude": ["dist", "node_modules"],
55
"compilerOptions": {
6-
"rootDir": "."
6+
"rootDir": ".",
7+
"lib": ["ESNext"]
78
}
89
}

0 commit comments

Comments
 (0)