The 2.10 release included Prefect Variables. Prefect variables are a lightweight way to get configuration into your code at runtime.
You can use variables to represent any string you like. I made a little demo video showing how they can be given different values in different workspaces