We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14d5d20 commit fe0cc37Copy full SHA for fe0cc37
packages/server/src/next/index.ts
@@ -63,7 +63,7 @@ function createRequest(
63
export function NextComment(options: NextCommentOptions): NextCommentRouter {
64
const internal = CustomComment<RequestType>(options);
65
const router: RouteHandler = async (req, context) => {
66
- const catchAll = (await context.params).comment.join("/");
+ const catchAll = ['comments', ...(await context.params).comment].join("/");
67
const res = await internal.handleRequest(req.method, catchAll, (params) =>
68
createRequest(req, params),
69
);
packages/server/tsconfig.json
@@ -3,6 +3,7 @@
3
"include": ["."],
4
"exclude": ["dist", "node_modules"],
5
"compilerOptions": {
6
- "rootDir": "."
+ "rootDir": ".",
7
+ "lib": ["ESNext"]
8
}
9
0 commit comments