Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

304
Views
Next image config not working for graphcms image

I am trying to just use graphcms for my image assets and load them into my Next JS (v12.0.1) frontend. However, it is just throwing this hostname not configured in next.config.js error even though I have already specified it in my next.config.js file as follows.

module.exports = {
  images: {
    domains: ['media.graphcms.com','media.graphassets.com'],
  }
};

I am loading it into a component with this query using @apollo/client :

import Page from '@components/page';
import TeamMembersGrid from '@components/team-members-grid';
import Layout from '@components/layout';
import Header from '@components/header';

import { META_DESCRIPTION } from '@lib/constants';
import { gql, useQuery } from '@apollo/client';

const TEAM_MEMBERS = gql`
query TeamMember {
  teamMembers {
    phoneNumber
    name
    id
    emailAddress
    subsystem
    role
    experienceLevel
    profileImage {
      url
    }
  }
}
`;

const TeamMembers = () => {
  const { data } =useQuery(TEAM_MEMBERS);
  const team = data?.teamMembers
  const meta = {
    title: 'Raftar Formula Racing',
    description: META_DESCRIPTION
  };

  return (
    <Page meta={meta}>
      <Layout>
        <Header hero="The Crew" description={meta.description} />
        {team && <TeamMembersGrid teamMembers={team}/>}
      </Layout>
    </Page>
  );
}

export default TeamMembers

Can someone please tell me what exactly is failing here ? error

about 4 years ago ยท Juan Pablo Isaza
1 answers
Answer question

0

Turns out, upgrading nextjs simply to 12.1.14 worked a charm & no my project is working great ! ๐Ÿ‘

about 4 years ago ยท Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
ยฉ 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!