Harry
CDCloudflare Developers
•Created by Galaxy on 1/22/2025 in #general-help
CNAME, A,
As far as I know there isn’t really a difference.
You can have your site on A www.whatever.com as A record and CNAME whatever.com to www.whatever.com
Or the inverse like A record on whatever.com and CNAME www.whatever.com to whatever.com.
It probably just comes down to preference, I generally set the A record as the root e.g whatever.com and then CNAME www to that and setup a redirect from www to the root, as I don’t really see the point in www in this day and age…
4 replies
CDCloudflare Developers
•Created by EasyDev on 1/14/2025 in #workers-help
Is it possible to make Vitest code available both locally and in production?
There aren’t loads of differences between Wrangler and actually running on the edge, there are some but in my experience I haven’t needed to test the specific cases of them separately.
If you wanted to, you could write another test that actually calls the https://<yourworker>.workers.dev route which tests against production, that’s more of an end to end test than a unit test but might give you the confidence you’re looking for.
5 replies
CDCloudflare Developers
•Created by EasyDev on 1/14/2025 in #workers-help
Is it possible to make Vitest code available both locally and in production?
For each test run vitest spins up a local instance of the worker and makes the request against that. What’s the reason for wanting to test “production” too?
5 replies