Skip to content

Commit

Permalink
Fixed env variable names used
Browse files Browse the repository at this point in the history
  • Loading branch information
j-hariharan committed May 18, 2024
1 parent 22a50c3 commit e1d795c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/members/page.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Members from "./Members"

export default async function MembersPage () {
let members = await fetch(process.env.NEXT_PUBLIC_STRAPI_BASE_URL+"/api/members?populate[posts][fields][0]=title&populate[sigs][fields][0]=name&populate=image&filters[alumni][$eq]=false", {
let members = await fetch(process.env.NEXT_PUBLIC_STRAPI_URL+"/api/members?populate[posts][fields][0]=title&populate[sigs][fields][0]=name&populate=image&filters[alumni][$eq]=false", {
headers: { Authorization: "Bearer " + process.env.STRAPI_API_KEY },
next: { revalidate: 0 }
})
Expand All @@ -23,7 +23,7 @@ export default async function MembersPage () {
async function getAlumni () {
"use server"

let alumni = await fetch(process.env.NEXT_PUBLIC_STRAPI_BASE_URL+"/api/members?populate[posts][fields][0]=title&populate[sigs][fields][0]=name&populate=image&filters[alumni][$eq]=true", {
let alumni = await fetch(process.env.NEXT_PUBLIC_STRAPI_URL+"/api/members?populate[posts][fields][0]=title&populate[sigs][fields][0]=name&populate=image&filters[alumni][$eq]=true", {
headers: { Authorization: "Bearer " + process.env.STRAPI_API_KEY },
next: { revalidate: 0 }
})
Expand Down

0 comments on commit e1d795c

Please sign in to comment.