Skip to content

Commit

Permalink
refactor: remove env var
Browse files Browse the repository at this point in the history
  • Loading branch information
okaziya committed Jan 15, 2025
1 parent e3bb4dd commit e7be981
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const metadata = {
title: SITE_INFO.title,
description: SITE_INFO.description,
icons: {
icon: `${process.env.NEXT_PUBLIC_BASE_PATH}/favicon.ico`,
icon: `/cv/favicon.ico`,
},
};

Expand Down
3 changes: 0 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,4 @@ module.exports = {
images: {
unoptimized: true,
},
env: {
NEXT_PUBLIC_BASE_PATH: "/cv",
},
};
5 changes: 1 addition & 4 deletions utils/imagePath.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
export const getImagePath = (src: string) => {
const basePath = process.env.NEXT_PUBLIC_BASE_PATH || "";
return `${basePath}${src}`;
};
export const getImagePath = (src: string) => `/cv${src}`;

0 comments on commit e7be981

Please sign in to comment.