This repository contains proxy rules for the seanmcternan.com domain hosted on Netlify.
Path-based proxies route to different country-specific child sites:
/de→https://germany-child.netlify.app(Germany)/uk→https://uk-child.netlify.app(United Kingdom)/ie→https://ireland-child.netlify.app(Ireland)/us→https://us-child.netlify.app(United States)/ca→https://canada-child.netlify.app(Canada)
All proxies include wildcard paths (e.g., /de/* → https://germany-child.netlify.app/*) to preserve any additional URL segments. These are proxies (status 200), not redirects, so the URL remains seanmcternan.com/[country].
The root path / defaults to the US site:
seanmcternan.com→ Proxies tohttps://us-child.netlify.app
Next.js static assets (/_next/*) are dynamically routed to the correct child site using an edge function:
- The edge function checks the
Refererheader to determine which country page the asset belongs to - Routes the asset request to the matching child site (e.g.,
/ukpage → UK site assets) - Defaults to US site if no referer match is found
This ensures each country site's assets (which have different Next.js build hashes) load correctly.
Proxies are configured in netlify.toml using:
- Status: 200 (proxy/rewrite)
- Force: true (ensures proxies work even if files exist)
- Edge Function:
next-routerfor dynamic/_next/*asset routing
Connect this repository to your Netlify project with the custom domain seanmcternan.com.
This site does NOT require any environment variables to be set.