Skip to content
Discussion options

You must be logged in to vote

Hi,

You are most likely fetching your own server's API endpoint, but during build time there's no API endpoint, because the server is not build just yet.

Instead of fetching from your own API endpoint, inline the code that gets the data you need, into your server component, which is one of the reasons to have server components in the first place.

The link above summarizes the problem, please do read through it.

Replies: 2 comments 15 replies

Comment options

You must be logged in to vote
2 replies
@Sathyaraj-dev
Comment options

@PunkFleet
Comment options

Answer selected by Sathyaraj-dev
Comment options

You must be logged in to vote
13 replies
@PunkFleet
Comment options

@icyJoseph
Comment options

@PunkFleet
Comment options

@icyJoseph
Comment options

@PunkFleet
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants