Best approach to change supply of nfts


We are planning to launch our erc721 collectibles in phases, i.e. having the max supply of nfts be 100 at first, then later increase it to 500, so on and so forth. Wanted to ask if writing a function to update max supply after contract is deployed is a secured option. We are writing the contract in remix and with OpenZeppelin.

Thank you

:1234: Code to reproduce

:computer: Environment

What do you mean by “a secured option”? You can do this, technically.