Skip to content

Commit

Permalink
next config apiurl added
Browse files Browse the repository at this point in the history
  • Loading branch information
sinanptm committed Sep 12, 2024
1 parent 5d543f6 commit dba5519
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/app/(landing-pages)/clinicians/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import getConfig from "next/config";

const Page = async () => {
const { publicRuntimeConfig } = getConfig();
const response = await fetch(`${publicRuntimeConfig.apiUrl}/doctors`, {
let api = publicRuntimeConfig.apiUrl || 'http://localhost:3000'
const response = await fetch(`${api}/doctors`, {
next: { revalidate: 60 },
});
const data = await response.json();
Expand Down

0 comments on commit dba5519

Please sign in to comment.