rsnext/test/integration/getserversideprops
Kara f6c58cb83a
Warn when mutating res if not streaming (#30284)
In #29010, we started throwing an error if the res was mutated after
getServerSideProps() returned. This was to support classic streaming,
where it would be possible to accidentally mutate the response headers
after they were already sent. However, this change also caught [a few
non-streaming cases](https://github.com/vercel/next.js/pull/29010#issuecomment-943482743) that we don't want to break.

As such, with this change, we only throw the error if res is mutated
after gSSP returns *and* you've opted into using classic streaming.
Otherwise, we will only add a warning to the console.
2021-10-25 20:18:03 -05:00
..
pages Warn when mutating res if not streaming (#30284) 2021-10-25 20:18:03 -05:00
test Warn when mutating res if not streaming (#30284) 2021-10-25 20:18:03 -05:00
next.config.js Provide resolvedUrl to getServerSideProps (#17082) 2020-09-14 21:01:04 +00:00
world.txt Rename getServerProps to getServerSideProps (#10722) 2020-02-27 11:04:30 -06:00