In next.js we have `generateStaticParams` How to do it in remix? because the example works only in dev mode, while deploying on the server it shows 404 on dynamic routes such as `posts.$id.tsx`.