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:
With H2_CONSOLE_ENABLED=false in the .env or dokku config file, the H2 Console link no longer appears:
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 tofalse
by default in prod environment.With![image](https://github.com/ucsb-cs156-s24/proj-courses-s24-4pm-3/assets/42985687/aee9306c-f0a5-4f2e-9988-a160a1f6f2cc)
H2_CONSOLE_ENABLED=true
in the .env or dokku config file, the H2 Console link appears in the top nav bar:With![image](https://github.com/ucsb-cs156-s24/proj-courses-s24-4pm-3/assets/42985687/237cfbe4-66a6-42ed-a3e1-7ff6dbf708b2)
H2_CONSOLE_ENABLED=false
in the .env or dokku config file, the H2 Console link no longer appears: