I would stick it out and switch teams or companies.
After 10 years, that probably puts you at the beginning of the 'less employable' age range. Starting over will require a substantial pay cut and may not be easy - nobody wants entry-level people.
If you do decide to switch, I would try to do it internally at the current company (whatever tech they have). Or pick the most common (employable) tech in your area.