How to redirect to subpage in Nextjs 14 with static build
Before we start: Please not that this solution isn’t perfect but works in some cases. Imagine you want to host your webpage on AWS with S3 and cloudfront distirbution. Your page is written in Nextjs. You have two paths defining different languages eg. /pl , /enso your urls should looks like: Your app folder can…