Replies: 1 comment
-
If it is use on the server ( |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This might be more of a webpack question, but if we have a wrapper around the Fetch and it is used in both getStaticProps/getStaticPaths as well as in our client code, does this function get pulled into the client JS file and still stay in the server side files? Is this done by webpack?
Just trying to figure out if we have a logger for client and a logger for server (that has a 'fs' dependency), if I should create a Decorator for the Fetch function (one for client logger and one for server logger) and then use those individually. In order to avoid the 'fs' errors on the client.
Beta Was this translation helpful? Give feedback.
All reactions