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

164
Views
getStaticProps Next JS no funciona en producción

Hago getStaticProps en páginas, en local funciona pero en producción no funciona. mi código está abajo:

 import {GetStaticProps} from 'next'; export const getStaticProps: GetStaticProps = async () => { const res = await apiAboutV2(); const data = res ?? {}; return { props: {about: _.result(data, 'data', {})}, revalidate: true, }; }; interface Props { about: any; } export default function About({about}: Props) { return ( <div> {about?.history} </div> ) }

alguien me puede sugerir?

editar:

 export const apiAboutV2 = async () => { const uri = `${baseUrl}/api/v2/public/about`; const res = await axios({ method: 'GET', url: uri, }) .then((res) => res.data) .catch((err) => err?.response?.data || err); return res; };

el código anterior es apiAboutV2

about 4 years ago · Juan Pablo Isaza
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!