Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
chore: debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiejaoude committed Nov 29, 2023
1 parent e3d1e09 commit 40401cd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export async function middleware(req) {
const hostedDomains = [hostedDomain, `www.${hostedDomain}`];

// if custom domain + on root path
console.log("--------", "domain: ", hostname, "path: ", reqPathName);
if (!hostedDomains.includes(hostname) && reqPathName === "/") {
console.log(`custom domain used: "${hostname}"`);

Expand Down

0 comments on commit 40401cd

Please sign in to comment.