Redirect a subdomain in netlify.toml dynamically


I have a custom domain ( []
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:

    from = "/tinycore"
    to = ""
    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: my website

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