Skip to content
Discussion options

You must be logged in to vote

For anyone reading this later, the problem was getting the apiLink and apiToken from process.env. By default those variables are not exposed to the client, they're only available to the Node environment. To expose the variable to the client, you need to prefix the variable name with NEXT_PUBLIC_ to make it visible. After making that change, the client side code works as well.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by imasnyper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant