You are not required to apply for divorce in the same state you've married.
In Massachusetts, the divorce petitioner may have remained in the state
for at least a year. You can apply in the county where you have lived
before with your spouse or your current county where you now reside.