euanwm / OpenWeightlifting

Repository that is deployed for the OpenWeightlifting site
https://www.openweightlifting.org
BSD 3-Clause "New" or "Revised" License
31 stars 21 forks source link

Deprecate local flag on backend #327

Closed euanwm closed 3 months ago

euanwm commented 4 months ago

Is your feature request related to a problem? Please describe. The local flag required when launching the backend locally can be deprecated and instead, we can rely on the GIN_MODE environment variable instead.

Describe the solution you'd like Substitute the local flag arg value for use of the environment variable GIN_MODE. The documentation will also need to be updated with the additional context so future contributors are aware of how CORS is disabled.