MisterMunchkin / mom-and-me-clinic

A Website for Mom and Me Clinic
https://momandme.clinic/
1 stars 0 forks source link

Hide appointment form inside a feature toggle #69

Closed MisterMunchkin closed 1 year ago

MisterMunchkin commented 1 year ago

The current set up we have is kind of shit... Because I take long breaks inbetween issues, I forget the set up we currently have which is that we PR all appointment related code to the appointment-form-feature branch. This sucks because now our main and feature branch is so out of sync I'm scared to merge them...

To fix this, we need to first merge main to the appointment-form-feature branch so we are working with the latest, then hide the appointment form buttons, and then urls for appointment form inside a feature toggle.

The feature toggle can be in the env. file as 'appointmentFormEnabled' This will default to false for all environments in netlify and this way we can also pick which environments can test out the new feature...