openfun / joanie

👛 A headless ERP for education to manage course enrollment/subscription, payment and certificates delivery.
MIT License
20 stars 2 forks source link

🔧(tray) complete admin nginx conf #728

Closed jbpenrath closed 3 months ago

jbpenrath commented 3 months ago

Purpose

We did this modification for local environment but not for deployment purpose.

Currently, on the back office, if a user tries to go directly on a resource page, it gets a 404 error. As we made a static export of our next application, we can't take apart of the fallback option from the getStaticPaths method. In order to prevent to have to build our next application to run through a node server, we decide to simply add a nginx location rule to try to find the right html file for dynamic routes containing an id parameter.