Redirect a subdomain in netlify.toml dynamically

Hello,

I have a custom domain (https://ari-web.xyz) [https://ari-web.netlify.app]
And if I wanted to for example switch domains I would not want to change a bunch of static stuff that redirects to my domain specifically
So can I make it dynamic somehow?

Current netlify.toml:

[[redirects]]
    from = "/tinycore"
    to = "https://tcl.ari-web.xyz/"
    status = 301
    force = true

any way to make the tcl subdomain be automatically
added to the domain instead of statically just putting in the
full URL?

Full source: GitHub - TruncatedDinosour/website: Ari-web source code (previously ari['s] web[site])

Instead of using netlify.toml, you’d have to use _redirects file and generate that file during the build time. You can use: