-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pages router test to nextjs example (#51)
* feat: add pages router test to nextjs example * chore: rename * fix: ci teamid and organize envs
- Loading branch information
Showing
3 changed files
with
23 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { index } from "@/app/api/vector"; | ||
import { NextApiRequest, NextApiResponse } from "next"; | ||
|
||
// This is a test route to check if imports are working with pages router | ||
export default async function handler(_req: NextApiRequest, res: NextApiResponse) { | ||
const result = await index.query({ data: "test query", topK: 3, includeData: true }) | ||
|
||
res.status(200).json({ result }) | ||
} |