When I print the global object in the getServerSideProps function, I see some attributes that nodejs does not have, such as fetch, Headers, Request, Response, why are there these, can I use it safely? #13830
-
When I print the global object in the getServerSideProps function, I see some attributes that nodejs does not have, such as fetch, Headers, Request, Response, why are there these, can I use it safely? 当我在getServerSideProps函数打印global对象时,我看到了一些nodejs没有的属性,如fetch、Headers、Request、Response,为什么会有这些呢,我能安全的使用吗? |
Beta Was this translation helpful? Give feedback.
Answered by
wereHamster
Jun 6, 2020
Replies: 1 comment
-
https://nextjs.org/blog/next-9-4#improved-built-in-fetch-support |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
timneutkens
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://nextjs.org/blog/next-9-4#improved-built-in-fetch-support