--- import Markdown from './Markdown.astro'; const explainer = ` This page is using a Netlify Edge Function (\`netlify/edge-functions/rewrite.js\`) to rewrite the URL based on visitor geography. ~~~js export default async (request, context) => { const path = context.geo?.country?.code === 'AU' ? '/edge/australia' : '/edge/not-australia'; return Response.redirect(new URL(path, request.url)); }; export const config = { path: '/edge' }; ~~~ [See more examples](https://edge-functions-examples.netlify.app) `; ---