When Joshua renews the covenant he does so in the backdrop of all the choices that can demand the time, energy, passion, & resources of God's people.
In that renewal, Joshua begins that renewal by:
1) stating his own commitment: as for me & my house, we will seve the Lord.
2) states the reversal of all things of distraction: but.
"But as for me and my house, we will serve the Lord."
You never see that 'but' on the embroidered version of this verse.
Joshua made a commitment to the Lord, even & especially when then are all other choices demand our time, energy, passion, & resources of God's people.