79232382

Date: 2024-11-28 02:17:44
Score: 1
Natty:
Report link

I want this feature too but the only solution that simple and works is this:

export async function generateStaticParams() {
  if (process.env.MODULE != '') {
    return [{ slug: [] }]
  }
  return source.generateParams()
}

then:

MODULE=rpa pnpm run build

the out build would not include the dynamic route directory.

next version: ^14.2.15

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: hx_hxl