Skip to content

Commit 7287804

Browse files
authored
bump next to 15.5; fix boilerplate routes; enable turbo build (#825)
1 parent 574adf0 commit 7287804

File tree

9 files changed

+66
-81
lines changed

9 files changed

+66
-81
lines changed

frontend/app/api/images/project/[projectId]/[imageId]/route.ts

Lines changed: 0 additions & 15 deletions
This file was deleted.

frontend/app/api/projects/[projectId]/datasets/[datasetId]/download/[format]/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { DownloadFormat } from '@/lib/types';
99
export async function GET(
1010
req: Request,
1111
props: {
12-
params: Promise<{ projectId: string; datasetId: string; format: DownloadFormat }>;
12+
params: Promise<{ projectId: string; datasetId: string; format: string }>;
1313
}
1414
): Promise<Response> {
1515
const params = await props.params;
@@ -19,7 +19,7 @@ export async function GET(
1919
const datasetId = params.datasetId;
2020
const format = params.format;
2121

22-
if (!Object.values(DownloadFormat).includes(format)) {
22+
if (!Object.values(DownloadFormat).includes(format as DownloadFormat)) {
2323
return Response.json(
2424
{ error: 'Invalid format. Supported formats are: csv, json' },
2525
{ status: 400 }

frontend/app/api/projects/[projectId]/datasets/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export async function GET(req: NextRequest, props: { params: Promise<{ projectId
8585

8686
export async function DELETE(
8787
req: Request,
88-
props: { params: Promise<{ projectId: string; datasetId: string }> }
88+
props: { params: Promise<{ projectId: string }> }
8989
): Promise<Response> {
9090
const params = await props.params;
9191
const projectId = params.projectId;

frontend/app/api/projects/[projectId]/evaluations/[evaluationId]/download/[format]/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { DownloadFormat } from '@/lib/types';
88
export async function GET(
99
req: Request,
1010
props: {
11-
params: Promise<{ projectId: string; evaluationId: string; format: DownloadFormat }>;
11+
params: Promise<{ projectId: string; evaluationId: string; format: string }>;
1212
}
1313
): Promise<Response> {
1414
const params = await props.params;

frontend/app/api/projects/[projectId]/queues/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export async function GET(req: NextRequest, props: { params: Promise<{ projectId
5858

5959
export async function DELETE(
6060
req: Request,
61-
props: { params: Promise<{ projectId: string; datasetId: string }> }
61+
props: { params: Promise<{ projectId: string }> }
6262
): Promise<Response> {
6363
const params = await props.params;
6464
const projectId = params.projectId;

frontend/app/api/projects/[projectId]/spans/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export async function GET(req: NextRequest, props: { params: Promise<{ projectId
2727

2828
export async function DELETE(
2929
req: NextRequest,
30-
props: { params: Promise<{ projectId: string; spanId: string }> }
30+
props: { params: Promise<{ projectId: string }> }
3131
): Promise<Response> {
3232
const params = await props.params;
3333
const projectId = params.projectId;

frontend/app/api/projects/[projectId]/traces/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export async function GET(req: NextRequest, props: { params: Promise<{ projectId
3030

3131
export async function DELETE(
3232
req: NextRequest,
33-
props: { params: Promise<{ projectId: string; traceId: string }> }
33+
props: { params: Promise<{ projectId: string }> }
3434
): Promise<Response> {
3535
const params = await props.params;
3636
const projectId = params.projectId;

frontend/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"scripts": {
66
"dev": "next dev --turbopack",
7-
"build": "next build",
7+
"build": "next build --turbopack",
88
"start": "next start",
99
"lint": "next lint",
1010
"lint:fix": "next lint --fix",
@@ -91,7 +91,7 @@
9191
"libsodium-wrappers": "^0.7.15",
9292
"lodash": "^4.17.21",
9393
"lucide-react": "^0.468.0",
94-
"next": "^15.4.7",
94+
"next": "~15.5.2",
9595
"next-auth": "^4.24.11",
9696
"next-mdx-remote": "^5.0.0",
9797
"pako": "^2.1.0",
@@ -127,7 +127,7 @@
127127
},
128128
"devDependencies": {
129129
"@eslint/eslintrc": "^3.3.1",
130-
"@next/eslint-plugin-next": "^15.4.7",
130+
"@next/eslint-plugin-next": "~15.5.2",
131131
"@tailwindcss/typography": "^0.5.16",
132132
"@types/dagre": "^0.7.53",
133133
"@types/jsonwebtoken": "^9.0.10",
@@ -145,7 +145,7 @@
145145
"drizzle-kit": "^0.31.4",
146146
"eslint": "^9.33.0",
147147
"eslint-config-love": "^121.0.0",
148-
"eslint-config-next": "^15.4.7",
148+
"eslint-config-next": "~15.5.2",
149149
"eslint-config-prettier": "^10.1.8",
150150
"eslint-plugin-import": "^2.32.0",
151151
"eslint-plugin-node": "^11.1.0",

frontend/pnpm-lock.yaml

Lines changed: 55 additions & 55 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)