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 883c040 commit e66e0af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions netlify/edge-functions/hiya.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export default async (request: Request, context: Context) => {

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

Expand Down

0 comments on commit e66e0af

Please sign in to comment.