Nextjs 13 app with Axios/ useSWR req not triggering on Vercel
Unanswered
Broad-snouted Caiman posted this in #help-forum
Broad-snouted CaimanOP
I deployed my first Vercel app here: https://tools.moonbit.ai/portfolio-assessment
The initial page works fine with the native fetch component of nextjs 13, but on /result it's suppose to fetch coins data (works on localhost) but no network requests are happening from my vercel app.
I suspected Vercel think it was a static page so I added
export const fetchCache = 'force-no-store'
export const revalidate = 0 // seconds
export const dynamic = 'force-dynamic'
but didn't make any difference.
I see nothing from the logs or monitoring, so hard to locate the issue.
Any ideas would be appreciated!
The initial page works fine with the native fetch component of nextjs 13, but on /result it's suppose to fetch coins data (works on localhost) but no network requests are happening from my vercel app.
I suspected Vercel think it was a static page so I added
export const fetchCache = 'force-no-store'
export const revalidate = 0 // seconds
export const dynamic = 'force-dynamic'
but didn't make any difference.
I see nothing from the logs or monitoring, so hard to locate the issue.
Any ideas would be appreciated!