mirror of
https://github.com/yusufipk/RepoHub.git
synced 2026-09-11 10:36:07 +00:00
chore: remove debug endpoints and update configuration
- Removed debug-packages and test-sync API endpoints no longer needed - Extracted sync status management into shared lib/sync/status module - Updated Next.js config to remove deprecated experimental appDir flag - Added port specification to production start script for consistency
This commit is contained in:
@@ -1,9 +1,17 @@
|
||||
import { NextRequest } from 'next/server'
|
||||
import { NextRequest, NextResponse } from 'next/server'
|
||||
import { SimplePackageFetcher } from '@/services/simplePackageFetcher'
|
||||
import { PlatformInitializer } from '@/services/platformInitializer'
|
||||
import { setSyncInProgress, setSyncProgress } from '@/app/api/sync-status/route'
|
||||
import { setSyncInProgress, setSyncProgress } from '@/lib/sync/status'
|
||||
|
||||
export const dynamic = 'force-dynamic'
|
||||
export const revalidate = 0
|
||||
|
||||
export async function GET(request: NextRequest) {
|
||||
// Skip any heavy sync work during static generation/build unless explicitly enabled
|
||||
if (process.env.ENABLE_SYNC_DURING_BUILD !== 'true') {
|
||||
// Return a lightweight JSON response so build doesn't hang
|
||||
return NextResponse.json({ disabled: true, reason: 'Sync disabled during build' })
|
||||
}
|
||||
const encoder = new TextEncoder()
|
||||
let cancelled = false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user