Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…e_nextjs into clean
  • Loading branch information
Samadeen committed Jul 24, 2024
2 parents 262ddad + 4a662fd commit 08879a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/layouts/navbar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Logo from "~/components/common/logo";
const navlinks = [
{ route: "Home", link: "/" },
{ route: "Pricing", link: "/pricing" },
{ route: "Features", link: "/" },
{ route: "Careers", link: "/career" },
];

const Navbar = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default async function middleware(request: NextRequest) {
const url = request.nextUrl;
let hostname = request.headers
.get("host")!
.replace(".localhost:3000", ".hng-boilerplate.com");
.replace(/\.localhost(:\d+)?/, ".hng-boilerplate.com");

hostname = hostname.replace("www.", ""); // remove www. from domain
const searchParameters = request.nextUrl.searchParams.toString();
Expand Down

0 comments on commit 08879a4

Please sign in to comment.