- 04 1月, 2021 19 次提交
-
-
由 Tim Neutkens 提交于
-
由 Tim Neutkens 提交于
-
由 Tim Neutkens 提交于
-
由 Tim Neutkens 提交于
-
由 Tim Neutkens 提交于
-
由 Tim Neutkens 提交于
-
由 Tim Neutkens 提交于
This file has been replaced by the bug-report issue template
-
由 Tim Neutkens 提交于
-
由 Tim Neutkens 提交于
-
由 Tim Neutkens 提交于
-
由 Tim Neutkens 提交于
-
由 Tim Neutkens 提交于
-
由 Tim Neutkens 提交于
-
由 Tim Neutkens 提交于
-
由 Alexander Kachkaev 提交于
This PR is a small follow-up to #14705. It saves Next.js users from falling into a [pretty nasty trap](https://github.com/nodejs/node/issues/36620) in which I ended up last Friday. It took more than two days to investigate what was going on, so I hope I'm the last person who’s doing it
😅 Next.js-specific MWE: https://github.com/kachkaev/hanging-response-in-next-via-redirect-plus-compression (needs to be ran locally using Node 14.0.0+). > <img width="521" alt="Screenshot 2020-12-24 at 20 50 00" src="https://user-images.githubusercontent.com/608862/103105989-a9b8dc00-4629-11eb-9be3-5108755604bf.png"> To reproduce the bug I’m fixing: 1. Pick a large http body size (64 or 128 KB) 1. Check _Call res.end() after res.redirect() in /api/redirect_ 1. Navigate to a heavy page or an api handler via redirect 1. Observe that the http response is never finished. If you set `compress` to `false` in `next.config.js` or pick a small payload size (< `zlib.Z_DEFAULT_CHUNK` after compression), the bug will not be observed. This is explained by the use of `res.on("drain", ...)` [by the `compression` package](https://github.com/expressjs/compression/blob/3fea81d0eaed1eb872bf3e0405f20d9e175ab2cf/index.js#L193-L218). The package itself is not the reason for an issue though, it seems to be in the Node’s built-in `http` package. I’m happy to provide more info or GitHub CI to the MWE if needed. I was also thinking of adding some Next.js-specific testing, but could not come up with a compact and clear test plan. Happy to do this if there are any ideas. cc @botv (author of #14705) -
由 Tim Neutkens 提交于
Fixes #20487
-
由 Leo Lamprecht 提交于
Updates the env documentation to mention `.vercelignore` when using the Vercel CLI. Also clears up parts of the other paragraphs and updates the links as these topics now have dedicated pages in the Vercel docs.
-
由 JJ Kasper 提交于
Follow-up to https://github.com/vercel/next.js/pull/20628 this ensures `isReady` is not initially true when the query isn't present but the page is an automatically statically optimized dynamic route
-
由 Vitali Zaidman 提交于
-
- 03 1月, 2021 3 次提交
-
-
由 tarunama 提交于
-
由 Frédéric Montet 提交于
Added the `locale` prop in the Link documentation. At the moment it is only stated in the i18n doc.
-
由 Zach Bialecki 提交于
Currently there is no way to add multiple meta tags with the same name attribute to the head of a page. This PR modifies the Head component to allow multiple meta tags with the same name if they have unique keys. This is important for integrating with certain services like Google Scholar and Swiftype. Fixes #10183
-
- 02 1月, 2021 9 次提交
-
-
由 Joe Haddad 提交于
-
由 Joe Haddad 提交于
This PR fixes a bug where `next/babel` would accidentally enable development transforms for a production build (`next build`). This is tested by the two updated unit tests (which removed a workaround for this bug, and one now properly enables dev transforms). --- Fixes #18929 Fixes #19001 x-ref #19046 x-ref #17032
-
由 Joe Haddad 提交于
This PR removes some left over traces of the `next/data` experiment, as it has been superseded by RSC.
-
由 JJ Kasper 提交于
-
由 Joe Haddad 提交于
Fixes #20500
-
由 Justin Eder 提交于
This updates the blog-starter-typescript example to use the latest version of Tailwind CSS (2.0.2) Notes: Followed the upgrade guide here: https://tailwindcss.com/docs/upgrading-to-v2 And Next / PostCSS guide here: https://nextjs.org/docs/advanced-features/customizing-postcss-config
-
由 JJ Kasper 提交于
* Update error when internal href and external as are used * Update to handle error outside invariant * Update err.sh components
-
由 JJ Kasper 提交于
-
由 JJ Kasper 提交于
-
- 01 1月, 2021 8 次提交
-
-
由 Luke Harries 提交于
In order to get this example working, I needed to remove the invocation as described here: https://github.com/vercel/next-plugins/issues/309#issuecomment-674376348
-
由 Joe Haddad 提交于
This PR fixes a bug where we'd accidentally pass-through the user-provided `srcSet` if the image was lazy, just to then replace it when we hydrate. --- Fixes #19041
-
由 子慕大诗人 提交于
### Don‘t use rem in react-dev-overlay. If we create a nextjs project and use css rem. We could set the html fontsize to any 'px'. The react-dev-overlay components styles will be affected so that the style becomes larger or smaller. ![image](https://user-images.githubusercontent.com/10840654/95490394-c189a800-09ca-11eb-816a-8bcaf6bcb657.png) ## So i suggest change the rem to px. ## After modification: ![image](https://user-images.githubusercontent.com/10840654/95490703-2e9d3d80-09cb-11eb-8369-7ec650fa6c52.png) --- Fixes #18680
-
由 Joe Haddad 提交于
This bundles ally.js into Next.js itself to upgrade a dependency they have pinned. I tried every other major focus trap solution, even those used by some modal libraries, and they all failed. `ally.js` is the only library that can do it correctly, so we're going to stick with it. I also removed the `maintain/disabled` as we have a backdrop that would effectively result in the same. This reduces CPU strain. --- Fixes #19893 Fixes #14369 Closes #14372
-
由 enoch ndika 提交于
This example illustrates how to integrate mdbreact (material design bootstrap for react) with next.js
-
由 JJ Kasper 提交于
Adds an `isReady` field on `next/router` specifying whether the router fields are updated client-side and ready for use. Should only be used inside of `useEffect` methods and not for conditionally rendering on the server. Closes: https://github.com/vercel/next.js/issues/8259 Closes: https://github.com/vercel/next.js/pull/9370
-
由 Tom 提交于
-
由 Joe Haddad 提交于
This pull request adjusts our experimental scroll restoration behavior to use `sessionStorage` as opposed to `History#replaceState` to track scroll position. In addition, **it eliminates a scroll event listener** and only captures when a `pushState` event happens (thereby leaving state that needs snapshotted). These merely adjusts implementation detail, and is covered by existing tests: ``` test/integration/scroll-back-restoration/ ``` --- Fixes #16690 Fixes #17073 Fixes #20486
-
- 31 12月, 2020 1 次提交
-
-
由 Lee Robinson 提交于
Building off [this Slack conversation](https://vercel.slack.com/archives/CGD3XGSD7/p1597329727013900), this PR adds a top-level section to the documentation on authentication patterns. Please provide any and all comments! A few open thoughts I have: - ~Should this include code snippets from the related providers or stay very high-level? At what point do we delegate to the examples folder?~ Keep things high level and delegate to examples folder - ~Should this include any related cards at the bottom?~ Added to the bottom - ~Should other places in the documentation link back to here?~ Added link from routing - Should it be a top-level route, or be underneath advanced?
-