Add dynamic exports to Next.js routes for proper validation

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-06 12:33:45 +00:00
parent 3d824dec79
commit 978aefdaf2
2 changed files with 4 additions and 0 deletions

View File

@@ -12,6 +12,8 @@ interface RouteParams {
}
}
export const dynamic = 'force-dynamic'
export const GET = async (request: NextRequest, { params }: RouteParams) => {
const runId = Number(params.runId)
if (!Number.isFinite(runId) || runId <= 0) {

View File

@@ -1,3 +1,5 @@
export const dynamic = 'force-dynamic'
export { DELETE } from './handlers/delete-package-data'
export { GET } from './handlers/get-package-data'
export { PUT } from './handlers/put-package-data'