Skip to content
RED SAG Skills
mediumStudy question · answer published in Next.js interview questions, so no pointsnextjsreact-server-componentsdata-fetching

Relative fetch on the server

A Server Component calls await fetch('/api/products') and fails during render with an invalid URL error. What is the best fix?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions