Skip to content

Commit

Permalink
Feat(Lib): Experimental Fetch API 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Ikram-Maulana committed Apr 24, 2023
1 parent 93c8891 commit 5707e4b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/app/(portfolio)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,9 @@ const ContactSection = dynamic(() => import("@/components/contact-section"), {
const getFeaturedProjects = async (): Promise<MainProjectItem> => {
let baseUrl = "http://localhost:3000";
if (process.env.VERCEL_URL) {
baseUrl =
process.env.VERCEL_URL === "https://ikram-maulana.tech"
? "https://ikram-maulana.tech"
: process.env.VERCEL_URL;
baseUrl = process.env.VERCEL_URL;
}
console.log(baseUrl);
const res = await fetch(`${baseUrl}/projects/api`, {
next: {
revalidate: 60,
Expand Down

0 comments on commit 5707e4b

Please sign in to comment.