I am using AlchemyProvider with ether.js to deploy a smart contract using frontend data But I am not able to sign the provider i.e AlchemyProvider.
Code
const provider = new ethers.providers.AlchemyProvider("maticmum","apikey");
const signer = provider.getSigner()
Error
Error: API provider does not support signing (operation="getSigner", code=UNSUPPORTED_OPERATION, version=providers/5.7.2)