I am currently exploring ways to create simple dummy dynamic routes, such as /order/{productid}.
While Next offers various strategies, I have identified two potential solutions for my specific needs:
Static paths generation: With over 1400 products, static generation could be feasible if I could utilize ISR. However, due to geographical restrictions (I am in Europe and the lambdas created by ISR are in the US), this option is not viable for me.
Basic dynamic routing : My attempts at implementing dynamic routes have resulted in issues when working with i18n setup, leading to an infinite loop. Despite extensive research, I have not found a satisfactory solution.
What have I tried? I followed the example provided in the Next.js documentation on dynamic routes and added i18n integration to replicate the issue.
You can view my implementation here: https://github.com/sergioviniciuss/next-dynamic-routing-i18n
If you have any ideas or suggestions, please feel free to share them.