Configure domain routing and Cloudflare DNS for sgcarstrends.com and subdomains. Use when adding new services, updating domain patterns, or debugging DNS issues.
This skill helps you manage domains and DNS configuration for the MotorMetrics platform.
motormetrics.app # Production web app
*.vercel.app # Preview deployments
Vercel handles DNS management with automatic SSL certificates.
Features:
motormetrics.appPoint your domain to Vercel:
Type Name Value
A @ 76.76.21.21
CNAME www cname.vercel-dns.com
Or use Vercel nameservers for full DNS management.
# Check DNS resolution
dig motormetrics.app
dig @8.8.8.8 motormetrics.app
# Or use online tools
# https://www.whatsmydns.net/#A/motormetrics.app
# Check certificate details
openssl s_client -connect motormetrics.app:443 -servername motormetrics.app
# Check certificate expiry
echo | openssl s_client -connect motormetrics.app:443 2>/dev/null | openssl x509 -noout -dates
# Test HTTPS
curl -I https://motormetrics.app
# Test redirect (www → apex)
curl -I https://www.motormetrics.app
Issue: DNS not resolving Solutions:
Issue: SSL certificate error Solutions:
Issue: 404 on custom domain Solutions:
Configure in next.config.ts:
const securityHeaders = [
{
key: "Strict-Transport-Security",
value: "max-age=63072000; includeSubDomains; preload",
},
{
key: "X-Frame-Options",
value: "SAMEORIGIN",
},
{
key: "X-Content-Type-Options",
value: "nosniff",
},
];
const nextConfig = {
async headers() {
return [
{
source: "/:path*",
headers: securityHeaders,
},
];
},
};
motormetrics.app for cleaner URLs