mirror of
https://github.com/yusufipk/RepoHub.git
synced 2026-09-11 18:46:07 +00:00
docs: Add comprehensive package contribution guide and validation tooling
- Add bilingual README with English/Turkish language switcher - Create detailed package contribution guidelines with platform-specific naming conventions - Add validation script for verifying package presets against database - Include best practices and example PR format for contributors - Add tsx dependency for running TypeScript validation scripts - Document validation workflow with manual and automated verification options
This commit is contained in:
@@ -65,14 +65,14 @@ export async function POST(request: NextRequest) {
|
||||
}
|
||||
|
||||
// Validate and set limit with better error message
|
||||
if (body.limit !== undefined && (body.limit < 1 || body.limit > 50)) {
|
||||
if (body.limit !== undefined && (body.limit < 1 || body.limit > 1000)) {
|
||||
return NextResponse.json(
|
||||
{ error: "Limit must be between 1 and 50" },
|
||||
{ error: "Limit must be between 1 and 1000" },
|
||||
{ status: 400 }
|
||||
);
|
||||
}
|
||||
const limit =
|
||||
body.limit && body.limit > 0 && body.limit <= 50 ? body.limit : 20;
|
||||
body.limit && body.limit > 0 && body.limit <= 1000 ? body.limit : 50;
|
||||
|
||||
// Generate recommendations
|
||||
const recommendations = await RecommendationService.generateRecommendations(
|
||||
|
||||
Reference in New Issue
Block a user