Skip to content

Netlify-Moneytronic/parent-site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

seanmcternan.com Proxy Site

This repository contains proxy rules for the seanmcternan.com domain hosted on Netlify.

Manual Proxy Rules

Path-based proxies route to different country-specific child sites:

  • /dehttps://germany-child.netlify.app (Germany)
  • /ukhttps://uk-child.netlify.app (United Kingdom)
  • /iehttps://ireland-child.netlify.app (Ireland)
  • /ushttps://us-child.netlify.app (United States)
  • /cahttps://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].

Default Behavior

The root path / defaults to the US site:

  • seanmcternan.com → Proxies to https://us-child.netlify.app

Static Assets

Next.js static assets (/_next/*) are dynamically routed to the correct child site using an edge function:

  • The edge function checks the Referer header to determine which country page the asset belongs to
  • Routes the asset request to the matching child site (e.g., /uk page → 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.

Configuration

Proxies are configured in netlify.toml using:

  • Status: 200 (proxy/rewrite)
  • Force: true (ensures proxies work even if files exist)
  • Edge Function: next-router for dynamic /_next/* asset routing

Deployment

Connect this repository to your Netlify project with the custom domain seanmcternan.com.

This site does NOT require any environment variables to be set.

About

A parent site used to configure redirect rules.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors