Skip to content

Importing contentful.js bundles browser version into server #1230

Answered by juanpprieto
basharh asked this question in Help
Discussion options

You must be logged in to vote

Hydrogen's server runtime is based off cloudflare worker enviroment. It acts a browser runtime and not as a server (NodeJS).

Have you tried importing the library via this path?
https://github.com/contentful/contentful.js#troubleshooting

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by basharh
Comment options

You must be logged in to vote
1 reply
@juanpprieto
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
2 participants