Skip to content

Pre-generate popular property IDs in generateStaticParams (currently []) #1102

Description

@nanaf6203-bit

Context

src/app/properties/[id]/page.tsx exports generateStaticParams returning an empty array, so no property detail pages are statically pre-rendered despite ISR revalidate = 60.

Problem

First hit on each detail page pays full SSR cost; cold-start latency hurts shared links (social/SEO).

Proposed approach

Return top-N IDs from the data source (API or mock) at build, keep ISR for the rest, document dynamic params behavior; or remove empty function if fully dynamic.

Acceptance criteria

  • generateStaticParams returns real IDs or is removed intentionally
  • Build pre-renders expected count of detail pages
  • ISR still revalidates

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions