'NextJs - routing gives 404 error in production

we launched our small site in production yesterday (it is a static site generated with NextJS and exported), but we have an issue, the routing works well, but when refreshing a page (except the homepage), it returns a 404 error. I have tried adding trailSlash to the config, and all the tricks I found here, with no result. The website is https://www.trisgram.com/



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source