Skip to content

Error: Failed to collect page data in production in next.js #54308

Answered by icyJoseph
humailsaleem123 asked this question in Help
Discussion options

You must be logged in to vote

The work you do in api/allSchedules, you should move into the getStaticProps function. First do that, then you can think of refactoring.

Replies: 6 comments 7 replies

Comment options

You must be logged in to vote
3 replies
@humailsaleem123
Comment options

@icyJoseph
Comment options

Answer selected by humailsaleem123
@humailsaleem123
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@asuh
Comment options

@Consoling
Comment options

@EmmanuelKD
Comment options

@reginpv
Comment options

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