-
Notifications
You must be signed in to change notification settings - Fork 27k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for AVIF #20381
Add support for AVIF #20381
Commits on Dec 22, 2020
-
sharp v0.27.0 should land tomorrow with support for AVIF (see lovell/sharp#2289 (comment)).
Configuration menu - View commit details
-
Copy full SHA for 8a6e2fe - Browse repository at this point
Copy the full SHA 8a6e2feView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0aa1bf2 - Browse repository at this point
Copy the full SHA 0aa1bf2View commit details -
Configuration menu - View commit details
-
Copy full SHA for cf47df0 - Browse repository at this point
Copy the full SHA cf47df0View commit details
Commits on Jan 5, 2021
-
changed ref from 'master' to 'main' branch (#20390)
Changed reference from 'master' to 'main' branch under DPS section in line with GitHub's recent switch from master to main branch as base repo branch names.
Configuration menu - View commit details
-
Copy full SHA for a5f98c1 - Browse repository at this point
Copy the full SHA a5f98c1View commit details -
Add note to deployment docs about handling new versions. (#20373)
Co-authored-by: Luis Alvarez D. <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for b45d75d - Browse repository at this point
Copy the full SHA b45d75dView commit details -
Configuration menu - View commit details
-
Copy full SHA for a181778 - Browse repository at this point
Copy the full SHA a181778View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1616cba - Browse repository at this point
Copy the full SHA 1616cbaView commit details -
Remove extra redirect for index with i18n (#20397)
This makes sure redirects to the index route properly end with a trailing slash or don't based on the `trailingSlash` config to ensure an additional redirect doesn't need to take place un-necessarily. Fixes: #19405
Configuration menu - View commit details
-
Copy full SHA for a226d36 - Browse repository at this point
Copy the full SHA a226d36View commit details -
Update revalidate checks (#19796)
This ensures we show an error for string values for `revalidate` since we currently don't handle these and instead it results in `revalidate: false` being used. This also adds tests for our `revalidate` checks to ensure they are triggered correctly and not triggered for valid values. x-ref: #20310
Configuration menu - View commit details
-
Copy full SHA for 61e85f6 - Browse repository at this point
Copy the full SHA 61e85f6View commit details -
Upgrade all http links to https (#20402)
Upgraded all `http` links to `https` that support the `https` protocol. Llinks ----- - https://github.com/ - https://koajs.com - https://ant.design - https://www.carbondesignsystem.com/components/overview - https://themes.carbondesignsystem.com - https://knexjs.org - https://jxnblk.com/rebass - https://i.imgur.com/JCxtWSj.gif - https://react.semantic-ui.com - https://stomp.github.io - https://videojs.com
Configuration menu - View commit details
-
Copy full SHA for ba4884b - Browse repository at this point
Copy the full SHA ba4884bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 900fa33 - Browse repository at this point
Copy the full SHA 900fa33View commit details -
example with-google-tag-manager (#20042)
Hi ✌️ I've seen that many people have problem with implement Google Tag Manager, I've created an example of how insert "Google Tag Manager" in a NextJs app
Configuration menu - View commit details
-
Copy full SHA for b823d0f - Browse repository at this point
Copy the full SHA b823d0fView commit details -
Style improvements on MongoDB example (#20515)
I've looked at the example code and saw some consistent issues related to code style. The changes applied to this PR fixes the following points: - Differences of line breaks styles between multiple files - Differences of if statements styles - Unnecessary comment - A typo on a JSDocs --- There were line breaks between statements on `pages/index.js` ```` export async function getServerSideProps(context) { const { client } = await connectToDatabase() const isConnected = await client.isConnected() return { props: { isConnected }, } } ```` And this wasn't being applied to the MongoDB utility: ```` export async function connectToDatabase() { if (cached.conn) return cached.conn if (!cached.promise) { const conn = {} const opts = { useNewUrlParser: true, useUnifiedTopology: true, } {...} ```` And also, as shown in the snippet above, there are different styles of if statements being used. With that being said, the reason I made this PR is because I think that this kind of inconsistent arises questions when a contributor looks to the codebase, even if this is a simple example.
Configuration menu - View commit details
-
Copy full SHA for 47e40ef - Browse repository at this point
Copy the full SHA 47e40efView commit details -
Fix typos found on examples docs (#20516)
This PR fixes some typos found on examples docs
Configuration menu - View commit details
-
Copy full SHA for 62c14ff - Browse repository at this point
Copy the full SHA 62c14ffView commit details -
fix example using-router import wrong pathname (#20536)
![image](https://user-images.githubusercontent.com/49720317/103223063-07b23000-4958-11eb-8bf9-09c39231a092.png) About page import wrong pathname causing warning like this.
Configuration menu - View commit details
-
Copy full SHA for b70c229 - Browse repository at this point
Copy the full SHA b70c229View commit details -
Update README for with-emotion example (#20338)
Change README from outdated @emotion/core to @emotion/react
Configuration menu - View commit details
-
Copy full SHA for 40247ed - Browse repository at this point
Copy the full SHA 40247edView commit details -
Co-authored-by: Joe Haddad <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a0c4152 - Browse repository at this point
Copy the full SHA a0c4152View commit details -
Upgrade Tailwindcss to 2.0.2 (#20517)
Normally I wouldn't make a PR for a minor version upgrade, but the 2.0.2 version contains some important performance improvements. tailwindlabs/tailwindcss#3032
Configuration menu - View commit details
-
Copy full SHA for 438911f - Browse repository at this point
Copy the full SHA 438911fView commit details -
Ensure query is present with i18n and history navigation (#20441)
This makes sure the query isn't dropped when doing a history navigation with i18n. Additional tests have been added to ensure this is working correctly as well. Fixes: #20212
Configuration menu - View commit details
-
Copy full SHA for cc0c854 - Browse repository at this point
Copy the full SHA cc0c854View commit details -
Ensure index rewrite is matched with i18n correctly (#20509)
This makes sure we don't generate the wrong locale source variant for the rewrite requiring a `/` on the end which won't ever be added causing the rewrite to never match. Additional tests have been added to ensure this specific rewrite is working correctly. Fixes: #20508
Configuration menu - View commit details
-
Copy full SHA for 38b51bb - Browse repository at this point
Copy the full SHA 38b51bbView commit details -
Configuration menu - View commit details
-
Copy full SHA for cecd307 - Browse repository at this point
Copy the full SHA cecd307View commit details -
Configuration menu - View commit details
-
Copy full SHA for 07be203 - Browse repository at this point
Copy the full SHA 07be203View commit details -
* Docs typo fix * Update docs/basic-features/environment-variables.md Co-authored-by: Lachlan Campbell <[email protected]> Co-authored-by: Joe Haddad <[email protected]> Co-authored-by: Lachlan Campbell <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 11195b6 - Browse repository at this point
Copy the full SHA 11195b6View commit details -
Update with-msw example (#20335)
* Update with-msw example * Update README * Update examples/with-msw/README.md * lint fix Co-authored-by: Luis Alvarez D <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for bf38f5f - Browse repository at this point
Copy the full SHA bf38f5fView commit details -
Correct import comment in interfaces (#20052)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for e7aa0ae - Browse repository at this point
Copy the full SHA e7aa0aeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7acb8ec - Browse repository at this point
Copy the full SHA 7acb8ecView commit details -
Update with-mongodb to be TypeScript-friendly (#19383)
* Update with-mongodb to be TypeScript-friendly I slightly modified the approach so TypeScript can correctly infer types without actually having to type anything but the global: **index.d.ts** ```ts import { Db, MongoClient } from "mongodb"; declare global { namespace NodeJS { interface Global { mongoCache: { conn: { client: MongoClient | null; db: Db | null; } promise: Promise<MongoClient> | null; }; } } } ``` * lint Co-authored-by: Joe Haddad <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 045a49a - Browse repository at this point
Copy the full SHA 045a49aView commit details -
Ensure path encoding is handled consistently for prerendered pages (#…
…19135) This ensures we handle encoding/decoding for SSG prerendered/fallback pages correctly. Since we only encode path delimiters when outputting to the disk we need to match this encoding when building the `ssgCacheKey` to look-up the prerendered pages. This also fixes non-ascii prerendered paths (e.g. 商業日語) not matching correctly. This does not resolve 👉 #10084 and further investigation will be needed before addressing non-ascii paths for non-SSG pages. The encoding output was tested against https://tst-encoding-l7amu5b9c.vercel.app/ to ensure the values will match correctly on Vercel. Closes: #17582 Closes: #17642 x-ref: #14717
Configuration menu - View commit details
-
Copy full SHA for 618c9c9 - Browse repository at this point
Copy the full SHA 618c9c9View commit details -
This tweaks the new i18n query history test to address intermittent failures in CI x-ref: #19197 (comment) x-ref: #19135 (comment) x-ref: #20379 (comment)
Configuration menu - View commit details
-
Copy full SHA for 03a0bca - Browse repository at this point
Copy the full SHA 03a0bcaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 450df44 - Browse repository at this point
Copy the full SHA 450df44View commit details -
Remove import type syntax from core files (#20379)
This removes `import type` usage from our core files since `import type` requires a higher TypeScript version than currently expected. Fixes: #19300
Configuration menu - View commit details
-
Copy full SHA for c176f43 - Browse repository at this point
Copy the full SHA c176f43View commit details -
Configuration menu - View commit details
-
Copy full SHA for e9c10f7 - Browse repository at this point
Copy the full SHA e9c10f7View commit details -
Configuration menu - View commit details
-
Copy full SHA for ec9cf31 - Browse repository at this point
Copy the full SHA ec9cf31View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ca9528 - Browse repository at this point
Copy the full SHA 0ca9528View commit details -
Configuration menu - View commit details
-
Copy full SHA for cb6a3bd - Browse repository at this point
Copy the full SHA cb6a3bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 32080cd - Browse repository at this point
Copy the full SHA 32080cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for f42cfd6 - Browse repository at this point
Copy the full SHA f42cfd6View commit details -
Ignore emacs lockfiles (#20497)
Fixes: #15278 > Bug report > When using next dev with emacs, as you develop, emacs creates symbolic link files starting with .# as lock files. Next.js seems to attempt to load these but fails, spewing out errors constantly. Prevents dev server from crashing when emacs creates lockfiles tested with: - GNU Emacs 27.1 - OSX 11.1 - Node v15.4.0
Configuration menu - View commit details
-
Copy full SHA for 51c5432 - Browse repository at this point
Copy the full SHA 51c5432View commit details -
Update with-styletron example to not use DebugEngine (#20233)
[DebugEngine stopped working](styletron/styletron#366) with v9.5 since the devtool is strictly set to eval and this option is not customizable. Unfortunately there is currently no way to fix this.
Configuration menu - View commit details
-
Copy full SHA for a9a376a - Browse repository at this point
Copy the full SHA a9a376aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8385291 - Browse repository at this point
Copy the full SHA 8385291View commit details -
Configuration menu - View commit details
-
Copy full SHA for fa00af1 - Browse repository at this point
Copy the full SHA fa00af1View commit details -
Update authentication examples (#19330)
* Updated example readme * Updated with-passport example * Updated profile page for with-passport * Updated with-passport-and-next-connect * Updated with-magic * Updated with-magic readme * Updated with-iron-session * Updated next version in with-iron-session Co-authored-by: Lee Robinson <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6339a86 - Browse repository at this point
Copy the full SHA 6339a86View commit details -
Update sharp optional dependency to support NPM 7 (#20432)
Sharp 0.26.3 updates prebuild-install to ^6.0.0 which fixes an incompatibility with NPM 7. See lovell/sharp#2419 and prebuild/prebuild-install#128
Configuration menu - View commit details
-
Copy full SHA for 4ee8ef6 - Browse repository at this point
Copy the full SHA 4ee8ef6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e6cae6 - Browse repository at this point
Copy the full SHA 8e6cae6View commit details -
Remove unnecessary unfetch polyfill for dev (#20589)
Fetch is always polyfilled in legacy browsers by `@next/polyfill-nomodule`, so we do not need to import unfetch for IE11 support. Fixes #20588
Configuration menu - View commit details
-
Copy full SHA for e9b2214 - Browse repository at this point
Copy the full SHA e9b2214View commit details -
Add profiling to webpack loaders (#20392)
Follow-up to #20357 with additional tracers.
Configuration menu - View commit details
-
Copy full SHA for 4365109 - Browse repository at this point
Copy the full SHA 4365109View commit details -
Ignore domains option when loader is set (#18447)
``` images: { domains: ['example.com'], path: 'https://example.com/myaccount/', }, ``` Those `domains` and `path` look a lot alike for me and so, I was confused. I found out that the domains are ignored if the Loader is set, which makes sense.
Configuration menu - View commit details
-
Copy full SHA for 4a98c4f - Browse repository at this point
Copy the full SHA 4a98c4fView commit details -
Ensure next/image loads correctly with basePath (#20592)
This ensures the default path used for the `next/image` component includes the `basePath` when configured. Additional tests have also been added to ensure the image component is working correctly with `basePath` configured. Fixes: #19711
Configuration menu - View commit details
-
Copy full SHA for 1cce1d9 - Browse repository at this point
Copy the full SHA 1cce1d9View commit details -
fix(next/link): reset scroll before lifecycles (#20595)
This moves the scroll reset behavior to happen synchronously with the DOM commit, instead of a few ticks after the render completes. This is necessary for components that read scroll state on mount. --- Fixes #6462
Configuration menu - View commit details
-
Copy full SHA for 3612d62 - Browse repository at this point
Copy the full SHA 3612d62View commit details -
Refactor GS(S)P notFound client-side handling (#20594)
This refactors to instead of throwing a specific error when a SSG data route 404s, we return it through props and render the 404 outside of the error handling flow. No additional tests have been added as existing tests should cover this. Closes: #19243
Configuration menu - View commit details
-
Copy full SHA for bf9ccb2 - Browse repository at this point
Copy the full SHA bf9ccb2View commit details -
Configuration menu - View commit details
-
Copy full SHA for b8257f4 - Browse repository at this point
Copy the full SHA b8257f4View commit details -
Ensure domain locales are redirected client-side (#20562)
This ensures we detect domain specific locales and redirect them client-side. Tests have been added in the `i18n` suite to ensure the domain redirect is applied correctly during a client-side navigation Fixes: #19174
Configuration menu - View commit details
-
Copy full SHA for 59df598 - Browse repository at this point
Copy the full SHA 59df598View commit details -
Configuration menu - View commit details
-
Copy full SHA for 59e9de3 - Browse repository at this point
Copy the full SHA 59e9de3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 27b5c87 - Browse repository at this point
Copy the full SHA 27b5c87View commit details -
fix(router): consistent scroll behavior for Link/Router#push (#20606)
This pull request makes `Router#push` and `Router#replace` function identically to `<Link />`, i.e. reset scroll when the new render is complete. Users can opt out of this new behavior via: ```tsx const path = '/my-page' router.push(path, path, { scroll: false }) ``` --- Fixes #3249
Configuration menu - View commit details
-
Copy full SHA for 95428b0 - Browse repository at this point
Copy the full SHA 95428b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ef1cb5 - Browse repository at this point
Copy the full SHA 1ef1cb5View commit details -
feat(next/image): reduce byte waste for 3x screens (#20610)
https://blog.twitter.com/engineering/en_us/topics/infrastructure/2019/capping-image-fidelity-on-ultra-high-resolution-devices.html > This means that most OLED screens that say they are 3x resolution, are actually 3x in the green color, but only 1.5x in the red and blue colors. Showing a 3x resolution image in the app vs a 2x resolution image will be visually the same, though the 3x image takes significantly more data. Even true 3x resolution screens are wasteful as the human eye cannot see that level of detail without something like a magnifying glass. > ![image](https://user-images.githubusercontent.com/616428/103366340-61b61100-4a90-11eb-9c16-8467f8930247.png) Even the iPhone doesn't have true 3x DPI! related: #18756
Configuration menu - View commit details
-
Copy full SHA for 9bb9a09 - Browse repository at this point
Copy the full SHA 9bb9a09View commit details -
Fix memory leak in useIntersection (#20407)
This pull request adds an `elements.delete` operation to the `useIntersection`'s cleanup function: `unobserve`. Without this delete operation, next.js holds onto an unreachable reference of every observed element indefinitely (automatically every Link and Image is observed, so that means every rendered Link and Image element adds to the leak). I found this memory leak when building out an infinite feed in next.js with thousands of Link elements. The final code block of the `unobserve` function body: ```tsx // Destroy observer when there's nothing left to watch: if (elements.size === 0) { observer.disconnect() observers.delete(id) } ``` Is effectively unreachable without this delete operation, as the `elements` map will never decrease in size as it is currently. This means that there will always be at least one IntersectionObserver instance in memory if useIntersection has been used once, regardless of if there are currently any components still using the hook.
Configuration menu - View commit details
-
Copy full SHA for e86a301 - Browse repository at this point
Copy the full SHA e86a301View commit details -
* Update dbConnect.js The previous logic was in my opinion prone to errors in situations when different calls to this function from different locations may happen at the same time ( like a race condition ). If the readyState is anything but not 0, then we must not try to perform a new connection as this may cause consequent connections! I hope this makes sense * Update examples/with-mongodb-mongoose/utils/dbConnect.js * Lint fix and minor changes Co-authored-by: Luis Alvarez D <[email protected]> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 09cebb8 - Browse repository at this point
Copy the full SHA 09cebb8View commit details -
feat(next/image): preload priority images (#20615)
The HTML Living Standard explicitly says `href` should be omitted to prevent the loading of an incorrectly sized image: https://html.spec.whatwg.org/multipage/semantics.html#attr-link-imagesrcset ![image](https://user-images.githubusercontent.com/616428/103378205-8a013800-4aaf-11eb-9085-10f547263fed.png) Since it's in the spec, I assume this is valid-enough HTML. This also dedupes preloads which the old implementation did not. --- Fixes #18756 x-ref #19118 Fixes #18720
Configuration menu - View commit details
-
Copy full SHA for 17b9ba5 - Browse repository at this point
Copy the full SHA 17b9ba5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 398c6fc - Browse repository at this point
Copy the full SHA 398c6fcView commit details -
Configuration menu - View commit details
-
Copy full SHA for d05f70a - Browse repository at this point
Copy the full SHA d05f70aView commit details -
Move CSS Preloads to top of head at document render (#18864)
Co-authored-by: Joe Haddad <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 37cb0f4 - Browse repository at this point
Copy the full SHA 37cb0f4View commit details -
Ensure SSG data 404 handles correctly for non-notFound (#20622)
Configuration menu - View commit details
-
Copy full SHA for 2ec2362 - Browse repository at this point
Copy the full SHA 2ec2362View commit details -
Fix: fallback font tag repetition (#20382)
partially fixes #20341 - Makes sure that font fallback does not get repeated for every request. - Adds a test for the same.
Configuration menu - View commit details
-
Copy full SHA for cf2d6f3 - Browse repository at this point
Copy the full SHA cf2d6f3View commit details -
Update blog starter example (#19698)
* bump dependencies to latest versions * use tailwindcss class names * use next/image component * pass in height & width. update tailwindcss classes * update tailwindcss classes * mention tailwindcss 2.0
Configuration menu - View commit details
-
Copy full SHA for 59ca531 - Browse repository at this point
Copy the full SHA 59ca531View commit details -
feat: upgrade to [email protected] (#20627)
This upgrades to the version of ncc with subbundling support.
Configuration menu - View commit details
-
Copy full SHA for 299c763 - Browse repository at this point
Copy the full SHA 299c763View commit details -
Configuration menu - View commit details
-
Copy full SHA for d167356 - Browse repository at this point
Copy the full SHA d167356View commit details -
Ensure href is updated for locale domain (#20631)
This ensures we render the locale domain on the `href` when using `next/link` previously the provided `href` was stilling being rendered which differed from the resulting `href` that was navigated to. Fixes: #20612
Configuration menu - View commit details
-
Copy full SHA for 95a4b4d - Browse repository at this point
Copy the full SHA 95a4b4dView commit details -
Add docs on authentication patterns. (#16277)
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?
Configuration menu - View commit details
-
Copy full SHA for 0a134fe - Browse repository at this point
Copy the full SHA 0a134feView commit details -
fix(experimental scroll): use
sessionStorage
instead ofhistory
(#……20633) 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
Configuration menu - View commit details
-
Copy full SHA for 78d550e - Browse repository at this point
Copy the full SHA 78d550eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 65518f9 - Browse repository at this point
Copy the full SHA 65518f9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a939f0 - Browse repository at this point
Copy the full SHA 8a939f0View commit details -
example with-mdbreact (#19879)
This example illustrates how to integrate mdbreact (material design bootstrap for react) with next.js
Configuration menu - View commit details
-
Copy full SHA for 87029a2 - Browse repository at this point
Copy the full SHA 87029a2View commit details -
fix(overlay): skip disable & upgrade platform (#20647)
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
Configuration menu - View commit details
-
Copy full SHA for 8df1045 - Browse repository at this point
Copy the full SHA 8df1045View commit details -
Fix react-dev-overlay rem style conflict (#17723)
### 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
Configuration menu - View commit details
-
Copy full SHA for 2eb2b7a - Browse repository at this point
Copy the full SHA 2eb2b7aView commit details -
fix(next/image): do not pass-through srcSrc on lazy image (#20651)
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
Configuration menu - View commit details
-
Copy full SHA for 432dcb2 - Browse repository at this point
Copy the full SHA 432dcb2View commit details -
Fix withSourceMaps is not a function (#20643)
In order to get this example working, I needed to remove the invocation as described here: vercel/next-plugins#309 (comment)
Configuration menu - View commit details
-
Copy full SHA for 599e5fe - Browse repository at this point
Copy the full SHA 599e5feView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7a21643 - Browse repository at this point
Copy the full SHA 7a21643View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1fedf98 - Browse repository at this point
Copy the full SHA 1fedf98View commit details -
Update error when internal href and external as are used (#20658)
* Update error when internal href and external as are used * Update to handle error outside invariant * Update err.sh components
Configuration menu - View commit details
-
Copy full SHA for 6ffdaa0 - Browse repository at this point
Copy the full SHA 6ffdaa0View commit details -
Update to Tailwind CSS 2.0 in blog-starter-typescript example (#20664)
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
Configuration menu - View commit details
-
Copy full SHA for cf8d2b1 - Browse repository at this point
Copy the full SHA cf8d2b1View commit details -
Configuration menu - View commit details
-
Copy full SHA for e1c5678 - Browse repository at this point
Copy the full SHA e1c5678View commit details -
Configuration menu - View commit details
-
Copy full SHA for c669213 - Browse repository at this point
Copy the full SHA c669213View commit details -
chore: remove old traces of
next/data
experiment (#20678)This PR removes some left over traces of the `next/data` experiment, as it has been superseded by RSC.
Configuration menu - View commit details
-
Copy full SHA for ea4762c - Browse repository at this point
Copy the full SHA ea4762cView commit details -
fix(next/babel): read env from caller, not process (#20679)
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
Configuration menu - View commit details
-
Copy full SHA for 2a396b5 - Browse repository at this point
Copy the full SHA 2a396b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for efb308a - Browse repository at this point
Copy the full SHA efb308aView commit details -
Don't dedupe meta tags with the same name but unique keys (#17099)
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
Configuration menu - View commit details
-
Copy full SHA for a5a7dee - Browse repository at this point
Copy the full SHA a5a7deeView commit details -
Added the `locale` prop in the Link documentation. At the moment it is only stated in the i18n doc.
Configuration menu - View commit details
-
Copy full SHA for 66e3bae - Browse repository at this point
Copy the full SHA 66e3baeView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f6c17f - Browse repository at this point
Copy the full SHA 3f6c17fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d16a8f - Browse repository at this point
Copy the full SHA 7d16a8fView commit details -
Ensure isReady is set correctly for auto static dynamic route (#20729)
Follow-up to #20628 this ensures `isReady` is not initially true when the query isn't present but the page is an automatically statically optimized dynamic route
Configuration menu - View commit details
-
Copy full SHA for 347715d - Browse repository at this point
Copy the full SHA 347715dView commit details -
Clarify how to use Environment Variables on Vercel (#20708)
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.
Configuration menu - View commit details
-
Copy full SHA for 134bc9b - Browse repository at this point
Copy the full SHA 134bc9bView commit details -
Configuration menu - View commit details
-
Copy full SHA for e06fd86 - Browse repository at this point
Copy the full SHA e06fd86View commit details -
Call res.write('') inside apiRes.redirect() helper to prevent an edge…
… case (#20461) This PR is a small follow-up to #14705. It saves Next.js users from falling into a [pretty nasty trap](nodejs/node#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)
Configuration menu - View commit details
-
Copy full SHA for 9dbb6f8 - Browse repository at this point
Copy the full SHA 9dbb6f8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1267700 - Browse repository at this point
Copy the full SHA 1267700View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7bae868 - Browse repository at this point
Copy the full SHA 7bae868View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e0a330 - Browse repository at this point
Copy the full SHA 4e0a330View commit details -
Configuration menu - View commit details
-
Copy full SHA for a957f5b - Browse repository at this point
Copy the full SHA a957f5bView commit details -
Configuration menu - View commit details
-
Copy full SHA for c33fe2f - Browse repository at this point
Copy the full SHA c33fe2fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d91049e - Browse repository at this point
Copy the full SHA d91049eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 078ef05 - Browse repository at this point
Copy the full SHA 078ef05View commit details -
This file has been replaced by the bug-report issue template
Configuration menu - View commit details
-
Copy full SHA for cc4e361 - Browse repository at this point
Copy the full SHA cc4e361View commit details -
Configuration menu - View commit details
-
Copy full SHA for d0115bc - Browse repository at this point
Copy the full SHA d0115bcView commit details -
Configuration menu - View commit details
-
Copy full SHA for fd7407d - Browse repository at this point
Copy the full SHA fd7407dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 18483ab - Browse repository at this point
Copy the full SHA 18483abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1854f1e - Browse repository at this point
Copy the full SHA 1854f1eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5485982 - Browse repository at this point
Copy the full SHA 5485982View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1cacd07 - Browse repository at this point
Copy the full SHA 1cacd07View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2e2ef75 - Browse repository at this point
Copy the full SHA 2e2ef75View commit details -
Configuration menu - View commit details
-
Copy full SHA for 800a116 - Browse repository at this point
Copy the full SHA 800a116View commit details -
Configuration menu - View commit details
-
Copy full SHA for 46de752 - Browse repository at this point
Copy the full SHA 46de752View commit details -
Configuration menu - View commit details
-
Copy full SHA for 915452a - Browse repository at this point
Copy the full SHA 915452aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0bc8935 - Browse repository at this point
Copy the full SHA 0bc8935View commit details -
Configuration menu - View commit details
-
Copy full SHA for d085bcf - Browse repository at this point
Copy the full SHA d085bcfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 36e0460 - Browse repository at this point
Copy the full SHA 36e0460View commit details -
Configuration menu - View commit details
-
Copy full SHA for b33c5da - Browse repository at this point
Copy the full SHA b33c5daView commit details -
fix(next-mdx): resolve webpack loader (#17983)
**What's the problem this PR addresses?** `@next/mdx` adds the webpack loader `@mdx-js/loader` without resolving it to an absolute path Depends on #17606 **How did you fix it?** `require.resolve` the webpack loader before adding it
Configuration menu - View commit details
-
Copy full SHA for 0f7efee - Browse repository at this point
Copy the full SHA 0f7efeeView commit details -
Move sizes var declaration just before used (#18402)
As with `const width`, it should be declared just before it is used.
Configuration menu - View commit details
-
Copy full SHA for fb53ce6 - Browse repository at this point
Copy the full SHA fb53ce6View commit details -
fix(next/head): assign bool attrs to match server (#20748)
This pull request correctly assigns boolean attributes for `<script />` to match the element as it is created by a server-side render. Prior to this pull request, we'd double-execute `<script>` tags with the `async`, `defer`, or `nomodule` property. --- Fixes #9070
Configuration menu - View commit details
-
Copy full SHA for 339b7ce - Browse repository at this point
Copy the full SHA 339b7ceView commit details -
Update database config explanation in with-firebase-app example (#20709)
I made the following changes. - Addition of procedure for setting private_key - Addition of procedure for creating a database and setting database_url
Configuration menu - View commit details
-
Copy full SHA for 252cddb - Browse repository at this point
Copy the full SHA 252cddbView commit details -
New example: /with-storybook-styled-jsx-scss (#18570)
Hi, I'm submitting this PR for consideration as a new example app showing Styled JSX with SCSS working inside and outside storybook with example components. Only known issue: I noticed that when running this example with: `$ yarn next ./examples/with-storybook-styled-jsx-scss` I receive the following error: ``` error - ./pages/_app.js Error: [BABEL] .../next.js/examples/with-storybook-styled-jsx-scss/pages/_app.js: Cannot find module 'styled-jsx-plugin-sass' (While processing: ".../next.js/node_modules/next/babel.js") ``` However I notice that this same missing module error is triggered when running this existing example app "with-styled-jsx-scss". Any changes/tweaks needed? Thanks!
Configuration menu - View commit details
-
Copy full SHA for 32b7b3a - Browse repository at this point
Copy the full SHA 32b7b3aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 452087d - Browse repository at this point
Copy the full SHA 452087dView commit details -
Update with-antd example (#19699)
https://ant.design/docs/react/getting-started#Import-on-Demand At the document, We don't need to use `babel-import-plugin` to `Import on Demand`.
Configuration menu - View commit details
-
Copy full SHA for 47beaeb - Browse repository at this point
Copy the full SHA 47beaebView commit details -
Clarify ctx.query type on getServerSideProps (#20327)
Closes #19481 The current text implies `query` is a string. IMO it would be better if it clarified that `query` is an object containing the query string's keys and values Edit: Relevant docs url: https://nextjs.org/docs/basic-features/data-fetching#getserversideprops-server-side-rendering
Configuration menu - View commit details
-
Copy full SHA for 6e9ff96 - Browse repository at this point
Copy the full SHA 6e9ff96View commit details -
Add new example for rate limiting API routes. (#19509)
Adds an example using `lru-cache` to implement a simple rate limiter for API routes ([Serverless Functions](https://vercel.com/docs/serverless-functions/introduction)). **Demo: https://nextjs-rate-limit.vercel.app/**
Configuration menu - View commit details
-
Copy full SHA for 90aeed4 - Browse repository at this point
Copy the full SHA 90aeed4View commit details -
Fix notFound false pages returning 404 (#19861)
Currently pages with `notFound: false` from `getServerSideProps` behave the same as `notFound: true`, i.e. just having the key is enough to result in a 404. This fixes the check in render.tsx and adds tests for it.
Configuration menu - View commit details
-
Copy full SHA for 74bea9d - Browse repository at this point
Copy the full SHA 74bea9dView commit details -
Add pr section to azure config (#20758)
Adds the `pr` section from https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/github?view=azure-devops&tabs=yaml#pr-triggers to filter paths that don't require test runs on PRs.
Configuration menu - View commit details
-
Copy full SHA for 6e0d995 - Browse repository at this point
Copy the full SHA 6e0d995View commit details -
Configuration menu - View commit details
-
Copy full SHA for 417f96c - Browse repository at this point
Copy the full SHA 417f96cView commit details