mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 22:04:56 +00:00
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:
@@ -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) {
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user