Should I migrate the CMS before or after a redesign?

Separately, in that order. Migrate the CMS first with the existing design intact, prove the platform works, then redesign on the new stack. Combining the two doubles the variables when something breaks. If the business case forces them together, freeze URL structure and content so the redirect map stays valid.