Life after divorce is a very different place from the married life you have just left or are contemplating leaving. It's uncharted territory and will require major changes which you can prepare for now.
Having to adjust to being on your own again after what may have been a marriage of many years is not going to be easy. Being optimistic post divorce means that the future needs to be viewed as a new beginning rather than an ending.