ucsb-cs156-s24 / proj-courses-s24-4pm-3

https://ucsb-cs156-s24.github.io/proj-courses-s24-4pm-3/
0 stars 0 forks source link

FEATURE: H2 Console option on NavBar #40

Closed ericpretzel closed 1 month ago

ericpretzel commented 1 month ago

Closes #38.

In this PR I implemented the option for developers to enable/disable the h2 console link in the nav bar. This can be useful to reduce clutter if they are trying to test or demo a (generally frontend) change that does not involve backend at all. It is set to true by default in dev environment and set to false by default in prod environment.

With H2_CONSOLE_ENABLED=true in the .env or dokku config file, the H2 Console link appears in the top nav bar: image

With H2_CONSOLE_ENABLED=false in the .env or dokku config file, the H2 Console link no longer appears: image