This question is one that you will need to answer, along with the help of the professionals who currently help you in managing your depression. The reason I say this is because hopefully you have identified those things that trigger your depression. If so, you can best know how to prepare for them. For example, let's say that completing a challenging task leaves you feeling empty and unfulfilled. Then perhaps you would want to have something else that you are also working on, so there is always a challenge.
But, if depression comes on for inexplicable reasons, then you won't be able to anticipate and prepare. However, perhaps you will be able to recognize warning signs when it first starts, and make appropriate medication adjustments.
It is important that you continue to work with a support team. It is easy to want to consider ourselves "cured," and, when that happens, and we leave the doctors and therapists behind, we have no one to turn to when we crash.
Although there is much more to managing depression than simply basic healthy living, I encourage you to be mindful of diet, exercise, sleep, stress -relief, and friendships/family - all things that can help with stress -management.
The other thing I want to talk to you about is legal job protections. You should read up on the ADA - Americans with Disabilities Act, EEOC discrimination laws, and FMLA - the Family Medical Leave Act. Knowing these protections are out there, and having a basic understanding of the protections they provide, will help you through the difficult times. Some of these protections apply only to employers that have at least a minimum number of employees, so you may want to consider working for a larger employer.
It is great that you are thinking ahead - best of luck!