Skip to content

Commit

Permalink
Fixing astro referrer
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljolley committed Apr 12, 2024
1 parent b81045e commit f505bfe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion netlify/edge-functions/hiya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default async (request: Request, context: Context) => {

let astroReplace =
analytic.referrer === "https://astro.build/" ? astroed : "";
const astroRegex = /ASTROED/i;
const astroRegex = /<!-- ASTROED -->/i;
updatedPage = updatedPage.replace(astroRegex, astroReplace);

const regex = /<!-- ANALYTIC -->/i;
Expand Down
2 changes: 1 addition & 1 deletion src/content
2 changes: 1 addition & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const permalink = `https://${import.meta.env.HOST}/`;
title="Bald Bearded Builder"
summary="Helping developers do more...<br>and laugh along the way."
/>
ASTROED
<!-- ASTROED -->
<Twitch />
<BetterCode />
<BrainDumpForm />
Expand Down

0 comments on commit f505bfe

Please sign in to comment.