Cloudflare Worker Custom Domain

I have created a new Cloudflare worker that works perfectly fine on a subdomain, however, when I follow the steps to publish it on my domain I can’t seem to get it working.

Let’s say my domain is example . com

In the “wrangler.toml” file I have set route to “test.example.com

I then publish it with “wrangler publish --release”

When I go to “test.example.com” I don’t get anything.

Am I missing something super obvious?

Thanks

EDIT: I got it working, but is there any way to make https?

Is your domain already set to use SSL and HTTPS? This is all in the SSL/TLS settings tab.