fix use of ENV -> FLASK_ENV to have correct prod/dev markers in navbar

This commit is contained in:
2023-07-01 16:05:06 +10:00
parent d4d37b96e3
commit cc37077504

View File

@@ -40,7 +40,7 @@
<nav class="navbar navbar-expand-lg navbar-light bg-light justify-content-between py-1">
<div class="container-fluid">
{% if config.ENV == "production" %}
{% if config.FLASK_ENV == "production" %}
<a class="navbar-brand" href="/">Books DB</a>
{% else %}
<a class="navbar-brand bg-secondary text-white px-2 py-0" style="border-radius:4px" href="/">Books (DEV)</a>